Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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.
|
| 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 |
+
|