mylesai commited on
Commit
cdddc03
·
verified ·
1 Parent(s): 908e5d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -909,6 +909,7 @@ with gr.Blocks() as block:
909
  password = gr.Textbox(label='Enter Password')
910
  dna_documents = gr.File(label='Upload DNA Documents', file_count='multiple')
911
  chat_gen_btn = gr.Button("Generate DNA LLM")
 
912
  with gr.Tab("Zipfile Upload"):
913
  with gr.Column(visible=True, elem_id='zipfile') as zipfile:
914
  with gr.Row():
@@ -978,7 +979,7 @@ with gr.Blocks() as block:
978
  stop.click(fn=None, inputs=None, outputs=None, cancels=[algo_event])
979
  stop_bf.click(fn=None, inputs=None, outputs=None, cancels=[bf_event])
980
  upload_btn.upload(upload_file, upload_btn, zipfile)
981
- chat_gen_btn.click(chat_gen.get_chat_engine, inputs=[dna_documents], outputs=[chat_engine])
982
  # stop_offline.click(fn=None, inputs=None, outputs=None, cancels=[offline_event])
983
 
984
  block.queue(default_concurrency_limit=5)
 
909
  password = gr.Textbox(label='Enter Password')
910
  dna_documents = gr.File(label='Upload DNA Documents', file_count='multiple')
911
  chat_gen_btn = gr.Button("Generate DNA LLM")
912
+ chat_gen_progress = gr.Label(label='LLM Created')
913
  with gr.Tab("Zipfile Upload"):
914
  with gr.Column(visible=True, elem_id='zipfile') as zipfile:
915
  with gr.Row():
 
979
  stop.click(fn=None, inputs=None, outputs=None, cancels=[algo_event])
980
  stop_bf.click(fn=None, inputs=None, outputs=None, cancels=[bf_event])
981
  upload_btn.upload(upload_file, upload_btn, zipfile)
982
+ chat_gen_btn.click(chat_gen.get_chat_engine, inputs=[dna_documents], outputs=[chat_engine, chat_gen_progress])
983
  # stop_offline.click(fn=None, inputs=None, outputs=None, cancels=[offline_event])
984
 
985
  block.queue(default_concurrency_limit=5)