OuroborosM commited on
Commit
835be01
·
1 Parent(s): a266cc6

Update app.py

Browse files

update UI setting

Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -366,16 +366,15 @@ def func_upload_file(files, chat_history):
366
  yield chat_history
367
 
368
  with gr.Blocks() as demo:
369
- gr.Markdown("Start typing below and then click **SUBMIT** to see the output.")
370
- with gr.Box():
371
- main = gr.ChatInterface(
372
- chathmi2,
373
- title="STLA BABY - YOUR FRIENDLY GUIDE",
374
- description= "v0.3: Powered by MECH Core Team",
375
-
376
- )
377
- upload_button = gr.UploadButton("Upload File", file_count="multiple")
378
- upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
379
 
380
  # demo = gr.Interface(
381
  # chathmi,
 
366
  yield chat_history
367
 
368
  with gr.Blocks() as demo:
369
+ # gr.Markdown("Start typing below and then click **SUBMIT** to see the output.")
370
+ main = gr.ChatInterface(
371
+ chathmi2,
372
+ title="STLA BABY - YOUR FRIENDLY GUIDE",
373
+ description= "v0.3: Powered by MECH Core Team",
374
+ height = 300,
375
+ )
376
+ upload_button = gr.UploadButton("Upload File", file_count="multiple")
377
+ upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
 
378
 
379
  # demo = gr.Interface(
380
  # chathmi,