alexandre-huynh commited on
Commit
f15c9a6
1 Parent(s): d2f666c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
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(elem_id="chat-messages", show_label=False, avatar_images=[user_profile_image,bot_profile_image],value=[[None,"Ask anything about medicine / scientific research !"]])
 
 
 
 
 
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="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)
 
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)