Spaces:
Running
on
Zero
Running
on
Zero
jadechoghari
commited on
Commit
•
c1af806
1
Parent(s):
b81786e
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
import os
|
3 |
import shutil
|
4 |
import spaces
|
|
|
5 |
|
6 |
# we will clone the repo and install the dependencies
|
7 |
os.system('git lfs install')
|
@@ -12,6 +13,7 @@ os.system('pip install torchlibrosa==0.0.9 librosa==0.9.2')
|
|
12 |
os.system('pip install -q pytorch_lightning==2.1.3 torchlibrosa==0.0.9 librosa==0.9.2 ftfy==6.1.1 braceexpand')
|
13 |
os.system('pip install torch==2.3.0+cu121 torchvision==0.18.0+cu121 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121')
|
14 |
|
|
|
15 |
# only then import the necessary modules from qa_mdt
|
16 |
from qa_mdt.pipeline import MOSDiffusionPipeline
|
17 |
|
|
|
2 |
import os
|
3 |
import shutil
|
4 |
import spaces
|
5 |
+
import sys
|
6 |
|
7 |
# we will clone the repo and install the dependencies
|
8 |
os.system('git lfs install')
|
|
|
13 |
os.system('pip install -q pytorch_lightning==2.1.3 torchlibrosa==0.0.9 librosa==0.9.2 ftfy==6.1.1 braceexpand')
|
14 |
os.system('pip install torch==2.3.0+cu121 torchvision==0.18.0+cu121 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121')
|
15 |
|
16 |
+
sys.path.append(os.path.abspath("qa_mdt"))
|
17 |
# only then import the necessary modules from qa_mdt
|
18 |
from qa_mdt.pipeline import MOSDiffusionPipeline
|
19 |
|