finalf0 commited on
Commit
2f08ee5
1 Parent(s): 73c9a6e
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -204,12 +204,7 @@ def clear_button_clicked(_question, _chat_bot, _app_cfg, _bt_pic):
204
 
205
  with gr.Blocks() as demo:
206
  with gr.Row():
207
- with gr.Row():
208
- app_session = gr.State({'sts':None,'ctx':None,'img':None})
209
- bt_pic = gr.Image(label="Upload an image to start")
210
- chat_bot = gr.Chatbot(label=f"Chat with {model_name}")
211
- txt_message = gr.Textbox(label="Input text")
212
- with gr.Row():
213
  params_form = create_component(form_radio, comp='Radio')
214
  with gr.Accordion("Beam Search", visible=False) as beams_according:
215
  num_beams = create_component(num_beams_slider)
@@ -219,6 +214,12 @@ with gr.Blocks() as demo:
219
  top_k = create_component(top_k_slider)
220
  temperature = create_component(temperature_slider)
221
  repetition_penalty_2 = create_component(repetition_penalty_slider2)
 
 
 
 
 
 
222
  regenerate = create_component({'value': 'Regenerate'}, comp='Button', visible=True)
223
  clear = create_component({'value': 'Clear'}, comp='Button', visible=True)
224
 
 
204
 
205
  with gr.Blocks() as demo:
206
  with gr.Row():
207
+ with gr.Column(scale=1, min_width=300):
 
 
 
 
 
208
  params_form = create_component(form_radio, comp='Radio')
209
  with gr.Accordion("Beam Search", visible=False) as beams_according:
210
  num_beams = create_component(num_beams_slider)
 
214
  top_k = create_component(top_k_slider)
215
  temperature = create_component(temperature_slider)
216
  repetition_penalty_2 = create_component(repetition_penalty_slider2)
217
+
218
+ with gr.Column(scale=3, min_width=500):
219
+ app_session = gr.State({'sts':None,'ctx':None,'img':None})
220
+ bt_pic = gr.Image(label="Upload an image to start")
221
+ chat_bot = gr.Chatbot(label=f"Chat with {model_name}")
222
+ txt_message = gr.Textbox(label="Input text")
223
  regenerate = create_component({'value': 'Regenerate'}, comp='Button', visible=True)
224
  clear = create_component({'value': 'Clear'}, comp='Button', visible=True)
225