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

UPDATE layout column sizing

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