Commit
·
cedbc67
1
Parent(s):
1d069cb
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def chat(message, history):
|
|
62 |
history.append((message, response))
|
63 |
return history, history
|
64 |
|
65 |
-
chatbot = gr.Chatbot()
|
66 |
css = """
|
67 |
footer {display:none !important}
|
68 |
.output-markdown{display:none !important}
|
@@ -118,9 +118,10 @@ div[data-testid="user"] {
|
|
118 |
"""
|
119 |
demo = gr.Interface(
|
120 |
chat,
|
121 |
-
["
|
122 |
[chatbot, "state"],
|
123 |
allow_flagging="never",
|
|
|
124 |
css=css
|
125 |
)
|
126 |
if __name__ == "__main__":
|
|
|
62 |
history.append((message, response))
|
63 |
return history, history
|
64 |
|
65 |
+
chatbot = gr.Chatbot(label="Chat")
|
66 |
css = """
|
67 |
footer {display:none !important}
|
68 |
.output-markdown{display:none !important}
|
|
|
118 |
"""
|
119 |
demo = gr.Interface(
|
120 |
chat,
|
121 |
+
[gr.Textbox(lines=1, label="Message"), "state"],
|
122 |
[chatbot, "state"],
|
123 |
allow_flagging="never",
|
124 |
+
title="Mental Health Bot | Data Science Dojo",
|
125 |
css=css
|
126 |
)
|
127 |
if __name__ == "__main__":
|