Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,14 +146,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 146 |
results_df = pd.DataFrame(results_log)
|
| 147 |
return status_message, results_df
|
| 148 |
|
| 149 |
-
|
| 150 |
-
zip_path = "file.zip"
|
| 151 |
-
extract_dir = "chroma_db"
|
| 152 |
-
if not os.path.exists(extract_dir):
|
| 153 |
-
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
|
| 154 |
-
zip_ref.extractall(extract_dir)
|
| 155 |
-
raise Exception('fatto')
|
| 156 |
-
|
| 157 |
# --- Build Gradio Interface using Blocks ---
|
| 158 |
with gr.Blocks() as demo:
|
| 159 |
gr.Markdown("# Basic Agent Evaluation Runner")
|
|
@@ -181,8 +174,8 @@ with gr.Blocks() as demo:
|
|
| 181 |
results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
|
| 182 |
|
| 183 |
run_button.click(
|
| 184 |
-
fn=
|
| 185 |
-
|
| 186 |
)
|
| 187 |
|
| 188 |
if __name__ == "__main__":
|
|
|
|
| 146 |
results_df = pd.DataFrame(results_log)
|
| 147 |
return status_message, results_df
|
| 148 |
|
| 149 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
# --- Build Gradio Interface using Blocks ---
|
| 151 |
with gr.Blocks() as demo:
|
| 152 |
gr.Markdown("# Basic Agent Evaluation Runner")
|
|
|
|
| 174 |
results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
|
| 175 |
|
| 176 |
run_button.click(
|
| 177 |
+
fn=run_and_submit_all,
|
| 178 |
+
outputs=[status_output, results_table]
|
| 179 |
)
|
| 180 |
|
| 181 |
if __name__ == "__main__":
|