Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
6fae77c
1
Parent(s):
9356f1d
add
Browse files- app.py +1 -2
- requirements.txt +2 -2
app.py
CHANGED
|
@@ -8,8 +8,7 @@ import spaces
|
|
| 8 |
import sys
|
| 9 |
import torch
|
| 10 |
|
| 11 |
-
os.system(
|
| 12 |
-
|
| 13 |
import torch
|
| 14 |
import torch.nn as nn
|
| 15 |
import gradio as gr
|
|
|
|
| 8 |
import sys
|
| 9 |
import torch
|
| 10 |
|
| 11 |
+
os.system("pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py310_cu121_pyt221/download.html")
|
|
|
|
| 12 |
import torch
|
| 13 |
import torch.nn as nn
|
| 14 |
import gradio as gr
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
torch
|
| 2 |
-
torchvision
|
| 3 |
gradio>=4.13.0,<5.0.0
|
| 4 |
diffusers
|
| 5 |
transformers
|
|
|
|
| 1 |
+
torch==2.2.1
|
| 2 |
+
torchvision==0.17.1
|
| 3 |
gradio>=4.13.0,<5.0.0
|
| 4 |
diffusers
|
| 5 |
transformers
|