ppsingh commited on
Commit
93fa507
1 Parent(s): 702b856

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -47,26 +47,39 @@ If you dont select any then the Consolidated report is relied upon to answer you
47
 
48
 
49
  with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-component") as demo:
50
-
51
  # main tab where chat interaction happens
 
52
  with gr.Tab("AuditQ&A"):
53
 
54
  with gr.Row(elem_id="chatbot-row"):
55
  with gr.Column(scale=2):
56
- # state = gr.State([system_template])
57
  chatbot = gr.Chatbot(
58
  value=[(None,init_prompt)],
59
  show_copy_button=True,show_label = False,elem_id="chatbot",layout = "panel",
60
  avatar_images = (None,"data-collection.png"),
61
- )#,avatar_images = ("assets/logo4.png",None))
62
 
63
- # bot.like(vote,None,None)
64
 
65
 
66
 
67
  with gr.Row(elem_id = "input-message"):
68
  textbox=gr.Textbox(placeholder="Ask me anything here!",show_label=False,scale=7,lines = 1,interactive = True,elem_id="input-textbox")
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  # static tab 'about us'
71
  with gr.Tab("About",elem_classes = "max-height other-tabs"):
72
  with gr.Row():
 
47
 
48
 
49
  with gr.Blocks(title="Audit Q&A", css= "style.css", theme=theme,elem_id = "main-component") as demo:
50
+ #----------------------------------------------------------------------------------------------
51
  # main tab where chat interaction happens
52
+ # ---------------------------------------------------------------------------------------------
53
  with gr.Tab("AuditQ&A"):
54
 
55
  with gr.Row(elem_id="chatbot-row"):
56
  with gr.Column(scale=2):
 
57
  chatbot = gr.Chatbot(
58
  value=[(None,init_prompt)],
59
  show_copy_button=True,show_label = False,elem_id="chatbot",layout = "panel",
60
  avatar_images = (None,"data-collection.png"),
61
+ )
62
 
 
63
 
64
 
65
 
66
  with gr.Row(elem_id = "input-message"):
67
  textbox=gr.Textbox(placeholder="Ask me anything here!",show_label=False,scale=7,lines = 1,interactive = True,elem_id="input-textbox")
68
 
69
+ # second column with playground area for user to select values
70
+ with gr.Column(scale=1, variant="panel",elem_id = "right-panel"):
71
+ # creating tabs on right panel
72
+ with gr.Tabs() as tabs:
73
+ with gr.Tab("Reports",elem_id = "tab-config",id = 2):
74
+ gr.Markdown("Reminder: To get better results select the specific report/reports")
75
+
76
+ with gr.TabItem("Examples",elem_id = "tab-examples",id = 0):
77
+ gr.Markdown("Reminder: To get better results select the specific report/reports")
78
+
79
+ with gr.Tab("Sources",elem_id = "tab-citations",id = 1):
80
+ gr.Markdown("Reminder: To get better results select the specific report/reports")
81
+
82
+
83
  # static tab 'about us'
84
  with gr.Tab("About",elem_classes = "max-height other-tabs"):
85
  with gr.Row():