Spaces:
Runtime error
Runtime error
Karthikeyan
commited on
Commit
•
24c2679
1
Parent(s):
c00db80
Update app.py
Browse files
app.py
CHANGED
@@ -260,13 +260,9 @@ class LangChain_Document_QA:
|
|
260 |
with gr.Row():
|
261 |
with gr.Column(scale=0.50, min_width=0):
|
262 |
plot =gr.Plot(label="Patient", size=(500, 600))
|
263 |
-
with gr.Column(scale=0.50, min_width=0):
|
264 |
-
plot_2 =gr.Plot(label="Psychotherapist", size=(500, 600))
|
265 |
-
with gr.Row():
|
266 |
with gr.Column(scale=0.50, min_width=0):
|
267 |
plot_3 =gr.Plot(label="Patient_Emotion", size=(500, 600))
|
268 |
-
|
269 |
-
plot_4 =gr.Plot(label="Psychotherapist_Emotion", size=(500, 600))
|
270 |
|
271 |
|
272 |
txt_msg = txt.submit(self._add_text, [chatbot, txt], [chatbot, txt])
|
@@ -280,9 +276,9 @@ class LangChain_Document_QA:
|
|
280 |
emptyBtn.click(self.clear_func,[],[])
|
281 |
emptyBtn.click(lambda: None, None, chatbot, queue=False)
|
282 |
|
283 |
-
Sentiment_btn.click(self._on_sentiment_btn_click,[],[txt5,plot,
|
284 |
|
285 |
-
demo.title = "AI
|
286 |
demo.launch()
|
287 |
document_qa =LangChain_Document_QA()
|
288 |
document_qa.gradio_interface()
|
|
|
260 |
with gr.Row():
|
261 |
with gr.Column(scale=0.50, min_width=0):
|
262 |
plot =gr.Plot(label="Patient", size=(500, 600))
|
|
|
|
|
|
|
263 |
with gr.Column(scale=0.50, min_width=0):
|
264 |
plot_3 =gr.Plot(label="Patient_Emotion", size=(500, 600))
|
265 |
+
|
|
|
266 |
|
267 |
|
268 |
txt_msg = txt.submit(self._add_text, [chatbot, txt], [chatbot, txt])
|
|
|
276 |
emptyBtn.click(self.clear_func,[],[])
|
277 |
emptyBtn.click(lambda: None, None, chatbot, queue=False)
|
278 |
|
279 |
+
Sentiment_btn.click(self._on_sentiment_btn_click,[],[txt5,plot,plot_3])
|
280 |
|
281 |
+
demo.title = "AI Mental Healthcare ChatBot"
|
282 |
demo.launch()
|
283 |
document_qa =LangChain_Document_QA()
|
284 |
document_qa.gradio_interface()
|