Emeritus-21 commited on
Commit
5a60fb2
·
verified ·
1 Parent(s): 455c83a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -595,10 +595,12 @@ write_script_status = gr.Markdown()
595
  write_script_btn.click(fn=lambda: f"✅ Trainer script written to {_write_trainer_script()}", outputs=[write_script_status])
596
  gr.Markdown("---")
597
  gr.Markdown("### ⬇️ Download GRPO Dataset")
 
598
  with gr.Row():
599
- download_grpo_btn = gr.Button("⬇️ Download GRPO Data (grpo_prefs.jsonl)")
600
- download_grpo_file = gr.File(label="GRPO Dataset File")
601
- download_grpo_btn.click(fn=get_grpo_file, outputs=[download_grpo_file])
 
602
 
603
- if name == "main":
604
- demo.queue(max_size=50).launch(share=True)
 
595
  write_script_btn.click(fn=lambda: f"✅ Trainer script written to {_write_trainer_script()}", outputs=[write_script_status])
596
  gr.Markdown("---")
597
  gr.Markdown("### ⬇️ Download GRPO Dataset")
598
+
599
  with gr.Row():
600
+ download_grpo_btn = gr.Button("⬇️ Download GRPO Data (grpo_prefs.jsonl)")
601
+ download_grpo_file = gr.File(label="GRPO Dataset File")
602
+ download_grpo_btn.click(fn=get_grpo_file, outputs=[download_grpo_file])
603
+
604
 
605
+ if __name__ == "__main__":
606
+ demo.queue(max_size=50).launch(share=True)