Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,16 @@ def predict(user_input):
|
|
30 |
return response
|
31 |
|
32 |
# Gradio interface
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|