Spaces:
Runtime error
Runtime error
onybrunella
commited on
Commit
•
504db4c
1
Parent(s):
af1b5fc
Update app.py
Browse files
app.py
CHANGED
@@ -318,19 +318,19 @@ with gr.Blocks(theme=theme, css=css) as demo: # Suppression de 'css=css' si 'cs
|
|
318 |
</div>
|
319 |
""")
|
320 |
with gr.Column(elem_id="chat-interface"):
|
321 |
-
chat = gr.Chatbot(elem_id="chat-messages", show_label=False, avatar_images=[bot_profile_image, user_profile_image])
|
322 |
-
with gr.Row(elem_id="input-area"):
|
323 |
-
text_input = gr.Textbox(placeholder="Ask anything about medicine / scientific research !", show_label=False)
|
324 |
-
text_input.submit(respond, inputs=[text_input, chat], outputs=[text_input,chat])
|
325 |
with gr.Row(elem_id="suggestions"):
|
326 |
sugg1 = gr.Button(suggestion[0], elem_classes="suggestion-btn").click(
|
327 |
-
suggestion1, inputs=[chat], outputs=chat
|
328 |
)
|
329 |
sugg2 = gr.Button(suggestion[1], elem_classes="suggestion-btn").click(
|
330 |
-
suggestion2, inputs=[chat], outputs=chat
|
331 |
)
|
332 |
sugg3 = gr.Button(suggestion[2], elem_classes="suggestion-btn").click(
|
333 |
-
suggestion3, inputs=[chat], outputs=chat
|
334 |
)
|
335 |
-
|
|
|
|
|
|
|
|
|
336 |
demo.launch(share=False)
|
|
|
318 |
</div>
|
319 |
""")
|
320 |
with gr.Column(elem_id="chat-interface"):
|
|
|
|
|
|
|
|
|
321 |
with gr.Row(elem_id="suggestions"):
|
322 |
sugg1 = gr.Button(suggestion[0], elem_classes="suggestion-btn").click(
|
323 |
+
suggestion1, inputs=[chat], outputs=[chat]
|
324 |
)
|
325 |
sugg2 = gr.Button(suggestion[1], elem_classes="suggestion-btn").click(
|
326 |
+
suggestion2, inputs=[chat], outputs=[chat]
|
327 |
)
|
328 |
sugg3 = gr.Button(suggestion[2], elem_classes="suggestion-btn").click(
|
329 |
+
suggestion3, inputs=[chat], outputs=[chat]
|
330 |
)
|
331 |
+
chat = gr.Chatbot(elem_id="chat-messages", show_label=False, avatar_images=[user_profile_image, bot_profile_image])
|
332 |
+
with gr.Row(elem_id="input-area"):
|
333 |
+
text_input = gr.Textbox(placeholder="Ask anything about medicine / scientific research !", show_label=False)
|
334 |
+
text_input.submit(respond, inputs=[text_input, chat], outputs=[text_input,chat])
|
335 |
+
|
336 |
demo.launch(share=False)
|