WICKED4950 commited on
Commit
27c3fd1
·
verified ·
1 Parent(s): 7f596b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -5
app.py CHANGED
@@ -30,8 +30,16 @@ def predict(user_input):
30
  return response
31
 
32
  # Gradio interface
33
- iface = gr.Interface(fn=predict,
34
- inputs="text",
35
- outputs="text",
36
- title="Iris (Good with mental health related topic!)")
37
- iface.launch()
 
 
 
 
 
 
 
 
 
30
  return response
31
 
32
  # Gradio interface
33
+ gr.Interface(
34
+ fn=predict,
35
+ inputs=gr.Textbox(label="Ask Iris anything!"),
36
+ outputs=gr.Textbox(label="Iris's Response"),
37
+ examples=[
38
+ ["What should I do if I'm feeling down?"],
39
+ ["How do I deal with stress?"],
40
+ ["Tell me something positive!"]
41
+ ],
42
+ description="A chatbot trained to provide friendly and comforting responses. Type your question below and let Iris help!",
43
+ title="Iris - Your Friendly Mental Health Assistant",
44
+
45
+ ).launch()