add chatbot presentation and exemple input

#15
by RCaz - opened
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -219,10 +219,15 @@ os.environ["LANGSMITH_API_KEY"] = os.environ['LANGSMITH_API_KEY']
219
 
220
  # lauch gradio app
221
  import gradio as gr
 
222
  iface = gr.ChatInterface(
223
  predict,
224
- chatbot=gr.Chatbot(value=[[None, "This bot allows you finding informations related to Rémi Cazelles's projects, work and education"]]),
225
  api_name="chat",
 
 
 
 
 
226
  )
227
- print("Launch ...")
228
- iface.launch(share=True)
 
219
 
220
  # lauch gradio app
221
  import gradio as gr
222
+
223
  iface = gr.ChatInterface(
224
  predict,
 
225
  api_name="chat",
226
+ chatbot=gr.Chatbot(placeholder="Hello! This app can help answering question about Rémi Cazelles's projects, work and education."),
227
+ description="Ask me anything about Rémi’s work, projects, or education. I’ll cite the source documents.",
228
+ examples=["How many years of experience does Rémi have in python, what significant project did he work on?",
229
+ "When did Rémi graduate from his doctorate, what was his reaserch topic about?",
230
+ "I have a project in DataENgineering using Microsoft Fabrics for data pipeline, how good is Rémi experience to join a team ASAP?"]
231
  )
232
+
233
+ iface.launch()