dlaima commited on
Commit
c0eb33d
·
verified ·
1 Parent(s): 474fee9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -48,7 +48,7 @@ class MyAgent:
48
  return self.agent.run(question)
49
 
50
  # Main evaluation function
51
- def run_and_submit_all(profile: gr.OAuthProfile | None, uploaded_code: list[gr.File] | None, uploaded_excel: list[gr.File] | None, uploaded_image: list[gr.File] | None):
52
  space_id = os.getenv("SPACE_ID")
53
 
54
  if profile:
@@ -166,7 +166,7 @@ with gr.Blocks() as demo:
166
 
167
  run_button.click(
168
  fn=run_and_submit_all,
169
- inputs=[gr.OAuthProfile(), code_upload, excel_upload, image_upload],
170
  outputs=[status_output, results_table]
171
  )
172
 
@@ -175,3 +175,4 @@ if __name__ == "__main__":
175
  demo.launch(debug=True, share=False)
176
 
177
 
 
 
48
  return self.agent.run(question)
49
 
50
  # Main evaluation function
51
+ def run_and_submit_all(profile, uploaded_code: list[gr.File] | None, uploaded_excel: list[gr.File] | None, uploaded_image: list[gr.File] | None):
52
  space_id = os.getenv("SPACE_ID")
53
 
54
  if profile:
 
166
 
167
  run_button.click(
168
  fn=run_and_submit_all,
169
+ inputs=[gr.State(), code_upload, excel_upload, image_upload],
170
  outputs=[status_output, results_table]
171
  )
172
 
 
175
  demo.launch(debug=True, share=False)
176
 
177
 
178
+