broadfield commited on
Commit
ddc77aa
·
verified ·
1 Parent(s): 68c890a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -150,7 +150,7 @@ def build_space(repo_name,file_name,file_content,access_token=""):
150
  return [{'role':'assistant','content': 'There was an Error: '+e}]
151
 
152
 
153
- def agent(prompt,history,mod,data):
154
  print('data ',data)
155
  print('mod ',mod)
156
  in_data=[None,None,None,None,None,]
@@ -226,9 +226,9 @@ with gr.Blocks() as ux:
226
  file_name=gr.Textbox(label="File Name")
227
  file_btn=gr.Button("Load Files")
228
  file_json=gr.JSON()
229
- sub_b = submit_b.click(agent, [chatbot],chatbot)
230
- sub_p = prompt.submit(agent, [chatbot],chatbot)
231
- stop_b.click(None,None,None, cancels=[sub_b,sub_p])
232
  ux.queue(default_concurrency_limit=20).launch(max_threads=40)
233
 
234
 
 
150
  return [{'role':'assistant','content': 'There was an Error: '+e}]
151
 
152
 
153
+ def agent(prompt,history,mod=2,data="None"):
154
  print('data ',data)
155
  print('mod ',mod)
156
  in_data=[None,None,None,None,None,]
 
226
  file_name=gr.Textbox(label="File Name")
227
  file_btn=gr.Button("Load Files")
228
  file_json=gr.JSON()
229
+ #sub_b = submit_b.click(agent, [chatbot],chatbot)
230
+ #sub_p = prompt.submit(agent, [chatbot],chatbot)
231
+ #stop_b.click(None,None,None, cancels=[sub_b,sub_p])
232
  ux.queue(default_concurrency_limit=20).launch(max_threads=40)
233
 
234