Spaces:
Runtime error
Runtime error
alexandre-huynh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -318,7 +318,12 @@ 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(
|
|
|
|
|
|
|
|
|
|
|
322 |
with gr.Row(elem_id="suggestions"):
|
323 |
sugg1 = gr.Button(suggestion[0], elem_classes="suggestion-btn").click(
|
324 |
suggestion1, inputs=[chat], outputs=[chat]
|
@@ -330,7 +335,7 @@ with gr.Blocks(theme=theme, css=css) as demo: # Suppression de 'css=css' si 'cs
|
|
330 |
suggestion3, inputs=[chat], outputs=[chat]
|
331 |
)
|
332 |
with gr.Row(elem_id="input-area"):
|
333 |
-
text_input = gr.Textbox(placeholder="
|
334 |
text_input.submit(respond, inputs=[text_input, chat], outputs=[text_input,chat])
|
335 |
|
336 |
demo.launch(share=False)
|
|
|
318 |
</div>
|
319 |
""")
|
320 |
with gr.Column(elem_id="chat-interface"):
|
321 |
+
chat = gr.Chatbot(
|
322 |
+
elem_id="chat-messages",
|
323 |
+
show_label=False,
|
324 |
+
avatar_images=[user_profile_image,bot_profile_image],
|
325 |
+
value=[[None,"Hi there ! I'm ALOQAS, a chatbot trained on over 119.000 PubMed scientific papers. Ask me anything about medicine or scientific research !"]]
|
326 |
+
)
|
327 |
with gr.Row(elem_id="suggestions"):
|
328 |
sugg1 = gr.Button(suggestion[0], elem_classes="suggestion-btn").click(
|
329 |
suggestion1, inputs=[chat], outputs=[chat]
|
|
|
335 |
suggestion3, inputs=[chat], outputs=[chat]
|
336 |
)
|
337 |
with gr.Row(elem_id="input-area"):
|
338 |
+
text_input = gr.Textbox(placeholder="Type a question, a sentence or keywords to ALOQAS...", show_label=False)
|
339 |
text_input.submit(respond, inputs=[text_input, chat], outputs=[text_input,chat])
|
340 |
|
341 |
demo.launch(share=False)
|