Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,14 @@ from huggingface_hub import hf_hub_download
|
|
3 |
import subprocess
|
4 |
import tempfile
|
5 |
import shutil
|
|
|
|
|
6 |
|
7 |
def download_model(repo_id, model_name):
|
8 |
model_path = hf_hub_download(repo_id=repo_id, filename=model_name)
|
9 |
return model_path
|
10 |
|
|
|
11 |
def run_inference(model_name, prompt_path):
|
12 |
repo_id = "hpcai-tech/Open-Sora"
|
13 |
|
|
|
3 |
import subprocess
|
4 |
import tempfile
|
5 |
import shutil
|
6 |
+
import spaces
|
7 |
+
|
8 |
|
9 |
def download_model(repo_id, model_name):
|
10 |
model_path = hf_hub_download(repo_id=repo_id, filename=model_name)
|
11 |
return model_path
|
12 |
|
13 |
+
@spaces.GPU
|
14 |
def run_inference(model_name, prompt_path):
|
15 |
repo_id = "hpcai-tech/Open-Sora"
|
16 |
|