Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,12 +24,13 @@ def run_peft_eval():
|
|
24 |
except Exception as e:
|
25 |
print("Failed to shutdown:", e, flush=True)
|
26 |
|
27 |
-
return f"
|
28 |
|
29 |
with gr.Blocks() as demo:
|
30 |
gr.Markdown("## PEFT-Bench Evaluation")
|
31 |
-
gr.Markdown("This Space runs evaluation and
|
32 |
-
|
33 |
-
|
|
|
34 |
|
35 |
demo.launch()
|
|
|
24 |
except Exception as e:
|
25 |
print("Failed to shutdown:", e, flush=True)
|
26 |
|
27 |
+
return f"PEFT-Bench completed at {datetime.datetime.utcnow():%Y-%m-%d %H:%M UTC}"
|
28 |
|
29 |
with gr.Blocks() as demo:
|
30 |
gr.Markdown("## PEFT-Bench Evaluation")
|
31 |
+
gr.Markdown("This Space runs evaluation and shuts down when finished.")
|
32 |
+
status = gr.Textbox(label="Status", lines=2)
|
33 |
+
btn = gr.Button("Start Evaluation Now")
|
34 |
+
btn.click(run_peft_eval, outputs=status)
|
35 |
|
36 |
demo.launch()
|