Upload server.py with huggingface_hub
Browse files
server.py
CHANGED
|
@@ -49,8 +49,8 @@ def load_model():
|
|
| 49 |
pipe.scheduler = UniPCMultistepScheduler.from_config(
|
| 50 |
pipe.scheduler.config, flow_shift=8.0
|
| 51 |
)
|
| 52 |
-
pipe.
|
| 53 |
-
print("[video-long] Model loaded
|
| 54 |
|
| 55 |
@app.route("/health", methods=["GET"])
|
| 56 |
def health():
|
|
|
|
| 49 |
pipe.scheduler = UniPCMultistepScheduler.from_config(
|
| 50 |
pipe.scheduler.config, flow_shift=8.0
|
| 51 |
)
|
| 52 |
+
pipe.to("cuda")
|
| 53 |
+
print("[video-long] Model loaded on CUDA!", flush=True)
|
| 54 |
|
| 55 |
@app.route("/health", methods=["GET"])
|
| 56 |
def health():
|