Spaces:
Running on Zero
Running on Zero
Jordan Legg commited on
Commit ·
ad625fd
1
Parent(s): e74ce9b
Use Gradio 5.x (get_token/whoami); drop huggingface_hub pin and debug logs
Browse files- README.md +1 -1
- app.py +0 -17
- requirements.txt +1 -2
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
title: Cinematic Video Generation
|
| 3 |
sdk: gradio
|
| 4 |
-
sdk_version: "
|
| 5 |
app_file: app.py
|
| 6 |
---
|
| 7 |
|
|
|
|
| 1 |
---
|
| 2 |
title: Cinematic Video Generation
|
| 3 |
sdk: gradio
|
| 4 |
+
sdk_version: "5.41.0"
|
| 5 |
app_file: app.py
|
| 6 |
---
|
| 7 |
|
app.py
CHANGED
|
@@ -2,26 +2,9 @@
|
|
| 2 |
Cinematic video generation Space using CogVideoX-5B with optional ExVideo LoRA.
|
| 3 |
Uses Hugging Face ZeroGPU: select ZeroGPU hardware in Space settings.
|
| 4 |
"""
|
| 5 |
-
# #region agent log
|
| 6 |
-
import json
|
| 7 |
-
import time
|
| 8 |
-
_logpath = "/Users/jordanlegg/Code/math/.cursor/debug-f92435.log"
|
| 9 |
-
try:
|
| 10 |
-
with open(_logpath, "a") as _f:
|
| 11 |
-
_f.write(json.dumps({"sessionId": "f92435", "runId": "post-fix", "hypothesisId": "H4", "location": "app.py:start", "message": "pre_import", "data": {"huggingface_hub_version": getattr(__import__("huggingface_hub"), "__version__", "?"), "has_HfFolder": hasattr(__import__("huggingface_hub"), "HfFolder")}, "timestamp": int(time.time() * 1000)}) + "\n")
|
| 12 |
-
except Exception:
|
| 13 |
-
pass
|
| 14 |
-
# #endregion
|
| 15 |
import tempfile
|
| 16 |
import torch
|
| 17 |
import gradio as gr
|
| 18 |
-
# #region agent log
|
| 19 |
-
try:
|
| 20 |
-
with open(_logpath, "a") as _f:
|
| 21 |
-
_f.write(json.dumps({"sessionId": "f92435", "runId": "post-fix", "hypothesisId": "H5", "location": "app.py:after_gr", "message": "gradio_imported", "data": {"gradio_version": getattr(gr, "__version__", "?")}, "timestamp": int(time.time() * 1000)}) + "\n")
|
| 22 |
-
except Exception:
|
| 23 |
-
pass
|
| 24 |
-
# #endregion
|
| 25 |
|
| 26 |
# ZeroGPU: import and use @spaces.GPU so the function runs on dynamically allocated GPU
|
| 27 |
try:
|
|
|
|
| 2 |
Cinematic video generation Space using CogVideoX-5B with optional ExVideo LoRA.
|
| 3 |
Uses Hugging Face ZeroGPU: select ZeroGPU hardware in Space settings.
|
| 4 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
import tempfile
|
| 6 |
import torch
|
| 7 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
# ZeroGPU: import and use @spaces.GPU so the function runs on dynamically allocated GPU
|
| 10 |
try:
|
requirements.txt
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
-
huggingface_hub==0.22.2
|
| 2 |
torch>=2.1.0
|
| 3 |
diffusers>=0.32.0
|
| 4 |
transformers
|
| 5 |
accelerate
|
| 6 |
safetensors
|
| 7 |
-
gradio>=
|
|
|
|
|
|
|
| 1 |
torch>=2.1.0
|
| 2 |
diffusers>=0.32.0
|
| 3 |
transformers
|
| 4 |
accelerate
|
| 5 |
safetensors
|
| 6 |
+
gradio>=5.0.0
|