Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,30 @@ def health_check():
|
|
49 |
def healthz():
|
50 |
return {"ok": True}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
# @app.get("/docs", include_in_schema=False)
|
53 |
# def custom_docs():
|
54 |
# return JSONResponse(get_openapi(title="LoRA Autorun API", version="1.0.0", routes=app.routes))
|
|
|
49 |
def healthz():
|
50 |
return {"ok": True}
|
51 |
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
|
63 |
+
|
64 |
+
with gr.Blocks(title="LoRA Autorun from HF Repo") as demo:
|
65 |
+
gr.Markdown("# 🚀 Auto Run LoRA from Hugging Face Repo")
|
66 |
+
output = gr.Textbox(label="Training Status", lines=3)
|
67 |
+
run_button = gr.Button("Run Training from HF Repo")
|
68 |
+
run_button.click(fn=auto_run_lora_from_repo, outputs=output)
|
69 |
+
|
70 |
+
if __name__ == "__main__":
|
71 |
+
demo.launch(share=True)
|
72 |
+
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
# @app.get("/docs", include_in_schema=False)
|
77 |
# def custom_docs():
|
78 |
# return JSONResponse(get_openapi(title="LoRA Autorun API", version="1.0.0", routes=app.routes))
|