Spaces:
Running
on
Zero
Running
on
Zero
Hide checkpoint upload fields - using Model Hub instead
Browse files
app.py
CHANGED
|
@@ -233,9 +233,11 @@ with gr.Blocks(title="STARFlow - Text-to-Image & Video Generation") as demo:
|
|
| 233 |
placeholder="a film still of a cat playing piano",
|
| 234 |
lines=3
|
| 235 |
)
|
|
|
|
| 236 |
image_checkpoint = gr.File(
|
| 237 |
label="Model Checkpoint (.pth file) - Optional if already uploaded to Space",
|
| 238 |
-
file_types=[".pth"]
|
|
|
|
| 239 |
)
|
| 240 |
image_config = gr.Textbox(
|
| 241 |
label="Config Path",
|
|
@@ -270,9 +272,11 @@ with gr.Blocks(title="STARFlow - Text-to-Image & Video Generation") as demo:
|
|
| 270 |
placeholder="a corgi dog looks at the camera",
|
| 271 |
lines=3
|
| 272 |
)
|
|
|
|
| 273 |
video_checkpoint = gr.File(
|
| 274 |
label="Model Checkpoint (.pth file) - Optional if already uploaded to Space",
|
| 275 |
-
file_types=[".pth"]
|
|
|
|
| 276 |
)
|
| 277 |
video_config = gr.Textbox(
|
| 278 |
label="Config Path",
|
|
|
|
| 233 |
placeholder="a film still of a cat playing piano",
|
| 234 |
lines=3
|
| 235 |
)
|
| 236 |
+
# Checkpoint upload hidden - using Model Hub instead
|
| 237 |
image_checkpoint = gr.File(
|
| 238 |
label="Model Checkpoint (.pth file) - Optional if already uploaded to Space",
|
| 239 |
+
file_types=[".pth"],
|
| 240 |
+
visible=False # Hidden - using Model Hub
|
| 241 |
)
|
| 242 |
image_config = gr.Textbox(
|
| 243 |
label="Config Path",
|
|
|
|
| 272 |
placeholder="a corgi dog looks at the camera",
|
| 273 |
lines=3
|
| 274 |
)
|
| 275 |
+
# Checkpoint upload hidden - using Model Hub instead
|
| 276 |
video_checkpoint = gr.File(
|
| 277 |
label="Model Checkpoint (.pth file) - Optional if already uploaded to Space",
|
| 278 |
+
file_types=[".pth"],
|
| 279 |
+
visible=False # Hidden - using Model Hub
|
| 280 |
)
|
| 281 |
video_config = gr.Textbox(
|
| 282 |
label="Config Path",
|