Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
import subprocess
|
| 4 |
import os
|
| 5 |
-
os.system("git clone https://github.com/Begineer17/Short-Video-Generator.git")
|
| 6 |
-
os.system("pip install -r requirements.txt")
|
| 7 |
|
| 8 |
|
| 9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 1 |
+
os.system("git clone https://github.com/Begineer17/Short-Video-Generator.git")
|
| 2 |
+
os.system("pip install -r requirements.txt")
|
| 3 |
+
os.system("pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118")
|
| 4 |
import gradio as gr
|
| 5 |
import torch
|
| 6 |
import subprocess
|
| 7 |
import os
|
|
|
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|