|
|
@ -375,17 +375,46 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"cell_type": "code", |
|
|
|
"cell_type": "code", |
|
|
|
"execution_count": null, |
|
|
|
"execution_count": 31, |
|
|
|
"id": "4ded9b3f-83e1-4971-9714-4894f2982b5a", |
|
|
|
"id": "4ded9b3f-83e1-4971-9714-4894f2982b5a", |
|
|
|
"metadata": { |
|
|
|
"metadata": { |
|
|
|
"scrolled": true |
|
|
|
"scrolled": true |
|
|
|
}, |
|
|
|
}, |
|
|
|
"outputs": [], |
|
|
|
"outputs": [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"name": "stdout", |
|
|
|
|
|
|
|
"output_type": "stream", |
|
|
|
|
|
|
|
"text": [ |
|
|
|
|
|
|
|
"* Running on local URL: http://127.0.0.1:7866\n", |
|
|
|
|
|
|
|
"\n", |
|
|
|
|
|
|
|
"To create a public link, set `share=True` in `launch()`.\n" |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"data": { |
|
|
|
|
|
|
|
"text/html": [ |
|
|
|
|
|
|
|
"<div><iframe src=\"http://127.0.0.1:7866/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>" |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"text/plain": [ |
|
|
|
|
|
|
|
"<IPython.core.display.HTML object>" |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"metadata": {}, |
|
|
|
|
|
|
|
"output_type": "display_data" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"data": { |
|
|
|
|
|
|
|
"text/plain": [] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"execution_count": 31, |
|
|
|
|
|
|
|
"metadata": {}, |
|
|
|
|
|
|
|
"output_type": "execute_result" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
"source": [ |
|
|
|
"source": [ |
|
|
|
"with gr.Blocks() as ui:\n", |
|
|
|
"with gr.Blocks() as ui:\n", |
|
|
|
" with gr.Row():\n", |
|
|
|
" with gr.Row():\n", |
|
|
|
" chatbot = gr.Chatbot(height=500, type=\"messages\")\n", |
|
|
|
" chatbot = gr.Chatbot(height=500, type=\"messages\", label=\"Multimodal Technical Expert Chatbot\")\n", |
|
|
|
" # image_output = gr.Image(height=500)\n", |
|
|
|
|
|
|
|
" with gr.Row():\n", |
|
|
|
" with gr.Row():\n", |
|
|
|
" entry = gr.Textbox(label=\"Ask our technical expert anything:\")\n", |
|
|
|
" entry = gr.Textbox(label=\"Ask our technical expert anything:\")\n", |
|
|
|
" audio_input = gr.Audio(\n", |
|
|
|
" audio_input = gr.Audio(\n", |
|
|
@ -420,14 +449,6 @@ |
|
|
|
"ui.launch(inbrowser=True)" |
|
|
|
"ui.launch(inbrowser=True)" |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
|
|
|
|
"cell_type": "code", |
|
|
|
|
|
|
|
"execution_count": null, |
|
|
|
|
|
|
|
"id": "da663d73-dd2a-4fff-84df-2209cf2b330b", |
|
|
|
|
|
|
|
"metadata": {}, |
|
|
|
|
|
|
|
"outputs": [], |
|
|
|
|
|
|
|
"source": [] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
"cell_type": "code", |
|
|
|
"cell_type": "code", |
|
|
|
"execution_count": null, |
|
|
|
"execution_count": null, |