OuroborosM commited on
Commit
1e3d783
·
1 Parent(s): b33cf3f

remove old ui

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -663,12 +663,12 @@ def fake(message, history):
663
 
664
  with gr.Blocks() as demo:
665
  # gr.Markdown("Start typing below and then click **SUBMIT** to see the output.")
666
- main = gr.ChatInterface(
667
- fake,
668
- title="STLA BABY - YOUR FRIENDLY GUIDE",
669
- description= "v0.3: Powered by MECH Core Team",
670
- )
671
- main.textbox.submit(chathmi3, [main.textbox, main.chatbot], [main.textbox, main.chatbot])
672
 
673
  with gr.Column() as main2:
674
  title = gr.Markdown("""# <center> STLA BABY - YOUR FRIENDLY GUIDE
@@ -708,7 +708,7 @@ with gr.Blocks() as demo:
708
  # logs = gr.Textbox()
709
  frash_logs = gr.Button("Update Logs ...")
710
  logs = gr.Textbox(max_lines = 25)
711
- upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
712
  inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot])
713
  stop_button.click(read_logs, None, logs, cancels=[inf1])
714
  upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)
 
663
 
664
  with gr.Blocks() as demo:
665
  # gr.Markdown("Start typing below and then click **SUBMIT** to see the output.")
666
+ # main = gr.ChatInterface(
667
+ # fake,
668
+ # title="STLA BABY - YOUR FRIENDLY GUIDE",
669
+ # description= "v0.3: Powered by MECH Core Team",
670
+ # )
671
+ # main.textbox.submit(chathmi3, [main.textbox, main.chatbot], [main.textbox, main.chatbot])
672
 
673
  with gr.Column() as main2:
674
  title = gr.Markdown("""# <center> STLA BABY - YOUR FRIENDLY GUIDE
 
708
  # logs = gr.Textbox()
709
  frash_logs = gr.Button("Update Logs ...")
710
  logs = gr.Textbox(max_lines = 25)
711
+ # upload_button.upload(func_upload_file, [upload_button, main.chatbot], main.chatbot)
712
  inf1 = inputtext.submit(chathmi3, [inputtext, chatbot], [inputtext, chatbot])
713
  stop_button.click(read_logs, None, logs, cancels=[inf1])
714
  upload_button.upload(func_upload_file, [upload_button, chatbot], chatbot)