Mdrnfox commited on
Commit
ddcd17e
·
verified ·
1 Parent(s): 8b3cf0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -12,8 +12,8 @@ def run_peft_eval():
12
  result = subprocess.run(["python3", "run_eval.py"], capture_output=True, text=True, check=True)
13
  print(result.stdout, flush=True)
14
  except subprocess.CalledProcessError as e:
15
- print("Eval script failed:\n", e.stderr, flush=True)
16
- return "Evaluation failed. Check logs."
17
 
18
  try:
19
  shutdown_url = os.environ.get("HF_ENDPOINT_SHUTDOWN")
@@ -23,10 +23,10 @@ def run_peft_eval():
23
  except Exception as e:
24
  print("Shutdown failed:", e, flush=True)
25
 
26
- return f"PEFT-Bench completed at {datetime.datetime.utcnow():%Y-%m-%d %H:%M UTC}"
27
 
28
  with gr.Blocks() as demo:
29
- gr.Markdown("##PEFT-Bench GPU Evaluator")
30
  gr.Markdown("Click the button below to start evaluation. The Space will shut down when done.")
31
  status = gr.Textbox(label="Status", lines=2)
32
  btn = gr.Button("Start Evaluation")
 
12
  result = subprocess.run(["python3", "run_eval.py"], capture_output=True, text=True, check=True)
13
  print(result.stdout, flush=True)
14
  except subprocess.CalledProcessError as e:
15
+ print("Eval script failed:\n", e.stderr, flush=True)
16
+ return "Evaluation failed. Check logs."
17
 
18
  try:
19
  shutdown_url = os.environ.get("HF_ENDPOINT_SHUTDOWN")
 
23
  except Exception as e:
24
  print("Shutdown failed:", e, flush=True)
25
 
26
+ return f"PEFT-Bench completed at {datetime.datetime.utcnow():%Y-%m-%d %H:%M UTC}"
27
 
28
  with gr.Blocks() as demo:
29
+ gr.Markdown("PEFT-Bench GPU Evaluator")
30
  gr.Markdown("Click the button below to start evaluation. The Space will shut down when done.")
31
  status = gr.Textbox(label="Status", lines=2)
32
  btn = gr.Button("Start Evaluation")