Skip to content

Commit

Permalink
Fix gallery example
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 15, 2021
1 parent 236b891 commit 63c0688
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,16 @@
"outputs": [],
"source": [
"result_panel = pn.pane.Markdown(sizing_mode=\"stretch_width\")\n",
"@pn.depends(speech_to_text_color.param.results_last, watch=True)\n",
"\n",
"@pn.depends(speech_to_text_color, watch=True)\n",
"def update_result_panel(results_last):\n",
" results_last = results_last.lower()\n",
" if results_last in colors:\n",
" app.background=results_last\n",
" result_panel.object=\"Result received: \" + results_last\n",
" app.background = results_last\n",
" result_panel.object = \"Result received: \" + results_last\n",
" else:\n",
" app.background = \"white\"\n",
" result_panel.object=\"Result received: \" + results_last + \" (Not recognized)\""
" result_panel.object = \"Result received: \" + results_last + \" (Not recognized)\""
]
},
{
Expand Down Expand Up @@ -166,7 +167,14 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.8"
"version": "3.8.2"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"state": {},
"version_major": 2,
"version_minor": 0
}
}
},
"nbformat": 4,
Expand Down

0 comments on commit 63c0688

Please sign in to comment.