\n",
"
Hello Dave, how can I help today?
\n",
"
\n",
"\"\"\"\n",
"\n",
"with gr.Blocks(theme=gr.themes.Soft()) as demo:\n",
" with gr.Tab(\"Google|Wikipedia|Arxiv\"):\n",
" with gr.Column(elem_id=\"col-container\"):\n",
" gr.HTML(title)\n",
" with gr.Row():\n",
" question = gr.Textbox(label=\"Question\", placeholder=\"Type your question and hit Enter \")\n",
" chatbot = gr.Chatbot([], elem_id=\"chatbot\")\n",
" chatbot.like(vote, None, None)\n",
" clear = gr.Button(\"Clear\")\n",
" question.submit(add_text, [chatbot, question], [chatbot, question], queue=False).then(\n",
" bot, chatbot, chatbot\n",
" )\n",
" clear.click(lambda: None, None, chatbot, queue=False)\n",
"\n",
"demo.queue()\n",
"demo.launch(debug=True)"
],
"metadata": {
"id": "J7xy7c2LcEbe"
},
"execution_count": null,
"outputs": []
}
]
}