osaaso commited on
Commit
9f5527a
·
1 Parent(s): 5773bf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -178,15 +178,14 @@ css="footer {visibility: hidden}"
178
  # Applying style to highlight the maximum value in each row
179
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
180
  with gr.Blocks() as demo:
181
- with gr.Row():
182
- chatbot = gr.Chatbot(
183
- [],
184
- elem_id="chatbot",
185
- bubble_full_width=False,
186
- avatar_images=(None, (os.path.join(os.path.dirname(__file__), "avatar.png"))),
187
- )
188
 
189
- with gr.Row():
190
  txt = gr.Textbox(
191
  scale=4,
192
  show_label=False,
@@ -202,9 +201,11 @@ with gr.Blocks() as demo:
202
  file_msg = btn.upload(add_file, [chatbot, btn], [chatbot], queue=False).then(
203
  bot, chatbot, chatbot
204
  )
 
205
  with gr.Column():
206
  data = gr.Dataframe() #styler)
207
  count = gr.Number(label="Rates!")
 
208
  name = gr.Textbox(label="a") #, placeholder="What is your name?")
209
  rate = gr.Textbox(label="b") #, placeholder="What is your name?") #gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
210
  celsci = gr.Textbox(label="c") #, lines=10, placeholder="Do you have any feedback on gradio?")
 
178
  # Applying style to highlight the maximum value in each row
179
  #styler = df.style.highlight_max(color = 'lightgreen', axis = 0)
180
  with gr.Blocks() as demo:
181
+ chatbot = gr.Chatbot(
182
+ [],
183
+ elem_id="chatbot",
184
+ bubble_full_width=False,
185
+ avatar_images=(None, (os.path.join(os.path.dirname(__file__), "avatar.png"))),
186
+ )
 
187
 
188
+ with gr.Row():
189
  txt = gr.Textbox(
190
  scale=4,
191
  show_label=False,
 
201
  file_msg = btn.upload(add_file, [chatbot, btn], [chatbot], queue=False).then(
202
  bot, chatbot, chatbot
203
  )
204
+ with gr.Row():
205
  with gr.Column():
206
  data = gr.Dataframe() #styler)
207
  count = gr.Number(label="Rates!")
208
+ with gr.Column():
209
  name = gr.Textbox(label="a") #, placeholder="What is your name?")
210
  rate = gr.Textbox(label="b") #, placeholder="What is your name?") #gr.Radio(label="How satisfied are you with using gradio?", choices=[1, 2, 3, 4, 5])
211
  celsci = gr.Textbox(label="c") #, lines=10, placeholder="Do you have any feedback on gradio?")