peterkchung commited on
Commit
967880e
1 Parent(s): 409b443

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +40 -40
app.py CHANGED
@@ -103,56 +103,56 @@ Chat UI using Gradio Blocks.
103
 
104
  with gr.Blocks() as chatUI:
105
  # gr.State()
106
-
107
- with gr.Column(scale=1):
108
- gr.Markdown(
109
- r"Query History"
110
- )
111
-
112
- with gr.Column(scale=4):
113
- gr.Textbox(
114
- placeholder = "Please enter you question or request here...",
115
- )
116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
 
118
- with gr.Group():
119
  gr.Textbox(
120
  placeholder = "Please enter you question or request here...",
121
  show_label = False,
122
- scale = 2,
123
- )
124
 
125
  gr.Button("Submit", scale = 1)
126
 
 
 
 
 
 
 
 
 
127
 
128
- gr.Chatbot(
129
- bubble_full_width = False,
130
- scale = 2
131
- )
132
-
133
-
134
- gr.Textbox(
135
- placeholder = "Please enter you question or request here...",
136
- show_label = False,
137
- scale = 4,
138
- )
139
-
140
- gr.Button("Submit", scale = 1)
141
-
142
- with gr.Column(scale=3):
143
- companyInfo = gr.Markdown(
144
- r"Company Info"
145
- )
146
-
147
- companyBull = gr.Markdown(
148
- r"Bull Case"
149
- )
150
-
151
- companyBear = gr.Markdown(
152
- r"Bear Case"
153
- )
154
-
155
 
 
156
  """
157
  Event functions
158
 
 
103
 
104
  with gr.Blocks() as chatUI:
105
  # gr.State()
106
+ with gr.Row():
107
+ with gr.Column(scale=1):
108
+ gr.Markdown(
109
+ r"Query History"
110
+ )
 
 
 
 
 
111
 
112
+ with gr.Column(scale=4):
113
+ gr.Textbox(
114
+ placeholder = "Please enter you question or request here...",
115
+ )
116
+
117
+
118
+ with gr.Group():
119
+ gr.Textbox(
120
+ placeholder = "Please enter you question or request here...",
121
+ show_label = False,
122
+ scale = 2,
123
+ )
124
+
125
+ gr.Button("Submit", scale = 1)
126
+
127
+
128
+ gr.Chatbot(
129
+ bubble_full_width = False,
130
+ scale = 2
131
+ )
132
 
133
+
134
  gr.Textbox(
135
  placeholder = "Please enter you question or request here...",
136
  show_label = False,
137
+ scale = 4,
138
+ )
139
 
140
  gr.Button("Submit", scale = 1)
141
 
142
+ with gr.Column(scale=3):
143
+ companyInfo = gr.Markdown(
144
+ r"Company Info"
145
+ )
146
+
147
+ companyBull = gr.Markdown(
148
+ r"Bull Case"
149
+ )
150
 
151
+ companyBear = gr.Markdown(
152
+ r"Bear Case"
153
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
 
155
+
156
  """
157
  Event functions
158