Spaces:
Running
on
Zero
Running
on
Zero
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import Repository
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
token = os.environ['model_fetch']
|
| 5 |
+
|
| 6 |
+
anonymizer_repo = Repository(local_dir="pipeline", clone_from="felixrosberg/EngageStudiosAutomotiveLoRA", use_auth_token=token)
|
| 7 |
+
|
| 8 |
+
from pipeline.sdxl_engage_lora_gradio_UI_class import EngageUI
|
| 9 |
+
|
| 10 |
+
ui = EngageUI()
|
| 11 |
+
ui.run_ui(lora_path: str = "pipeline/LoRA/sd-car-1024-finetuned-lora-rank-128-v8/checkpoint-18000")
|