Update app.py
Browse files
app.py
CHANGED
@@ -123,16 +123,16 @@ height: 70vh !important;
|
|
123 |
|
124 |
"""
|
125 |
|
126 |
-
|
127 |
-
|
128 |
|
129 |
demo = gr.Interface(
|
130 |
chat,
|
131 |
[gr.Textbox(lines=1, label="Message"), "state"],
|
132 |
[chatbot, "state"],
|
133 |
allow_flagging="never",
|
134 |
-
title="Mental Health Bot
|
135 |
css=css
|
136 |
)
|
137 |
if __name__ == "__main__":
|
138 |
-
demo.launch(
|
|
|
123 |
|
124 |
"""
|
125 |
|
126 |
+
cr_api = create_api(model,run=False,api_type="text-classification")
|
127 |
+
cr_api.run()
|
128 |
|
129 |
demo = gr.Interface(
|
130 |
chat,
|
131 |
[gr.Textbox(lines=1, label="Message"), "state"],
|
132 |
[chatbot, "state"],
|
133 |
allow_flagging="never",
|
134 |
+
title="Mental Health Bot",
|
135 |
css=css
|
136 |
)
|
137 |
if __name__ == "__main__":
|
138 |
+
demo.launch()
|