Karthikeyan commited on
Commit
5b4f4a3
β€’
1 Parent(s): d798e26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -25
app.py CHANGED
@@ -246,31 +246,31 @@ class LangChain_Document_QA:
246
  # with gr.Column(scale=0.80):
247
 
248
  # with gr.Column(scale=0.20, min_width=0):
249
-
250
- with gr.Row():
251
- with gr.Column(scale=0.50):
252
- txt4 =gr.Textbox(
253
- show_label=False,
254
- lines=4,
255
- placeholder="Summary").style(container=False)
256
- with gr.Column(scale=0.50):
257
- txt5 =gr.Textbox(
258
- show_label=False,
259
- lines=4,
260
- placeholder="Sentiment").style(container=False)
261
- with gr.Row():
262
- with gr.Column(scale=0.50, min_width=0):
263
- end_btn=gr.Button(value="End")
264
- with gr.Column(scale=0.50, min_width=0):
265
- Sentiment_btn=gr.Button(value="πŸ“Š",callback=self._on_sentiment_btn_click)
266
- with gr.Row():
267
- gr.HTML("""<center><h1>Sentiment and Emotion Score Graph</h1></center>""")
268
- with gr.Row():
269
- with gr.Column(scale=1, min_width=0):
270
- plot =gr.Plot(label="Patient", size=(500, 600))
271
- with gr.Row():
272
- with gr.Column(scale=1, min_width=0):
273
- plot_3 =gr.Plot(label="Patient_Emotion", size=(500, 600))
274
 
275
 
276
  txt_msg = txt.submit(self._add_text, [chatbot, txt], [chatbot, txt])
 
246
  # with gr.Column(scale=0.80):
247
 
248
  # with gr.Column(scale=0.20, min_width=0):
249
+ with gr.Accordion("Conversational AI Analytics", open = False):
250
+ with gr.Row():
251
+ with gr.Column(scale=0.50):
252
+ txt4 =gr.Textbox(
253
+ show_label=False,
254
+ lines=4,
255
+ placeholder="Summary").style(container=False)
256
+ with gr.Column(scale=0.50):
257
+ txt5 =gr.Textbox(
258
+ show_label=False,
259
+ lines=4,
260
+ placeholder="Sentiment").style(container=False)
261
+ with gr.Row():
262
+ with gr.Column(scale=0.50, min_width=0):
263
+ end_btn=gr.Button(value="End")
264
+ with gr.Column(scale=0.50, min_width=0):
265
+ Sentiment_btn=gr.Button(value="πŸ“Š",callback=self._on_sentiment_btn_click)
266
+ with gr.Row():
267
+ gr.HTML("""<center><h1>Sentiment and Emotion Score Graph</h1></center>""")
268
+ with gr.Row():
269
+ with gr.Column(scale=1, min_width=0):
270
+ plot =gr.Plot(label="Patient", size=(500, 600))
271
+ with gr.Row():
272
+ with gr.Column(scale=1, min_width=0):
273
+ plot_3 =gr.Plot(label="Patient_Emotion", size=(500, 600))
274
 
275
 
276
  txt_msg = txt.submit(self._add_text, [chatbot, txt], [chatbot, txt])