Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
|
|
|
|
|
| 1 |
|
|
|
|
| 2 |
import argparse
|
| 3 |
from datetime import datetime
|
| 4 |
from pathlib import Path
|
|
@@ -10,16 +13,16 @@ import shutil
|
|
| 10 |
import librosa
|
| 11 |
import python_speech_features
|
| 12 |
import time
|
| 13 |
-
from LIA_Model import
|
| 14 |
import os
|
| 15 |
from tqdm import tqdm
|
| 16 |
import argparse
|
| 17 |
import numpy as np
|
| 18 |
from torchvision import transforms
|
| 19 |
-
from templates import *
|
| 20 |
import argparse
|
| 21 |
import shutil
|
| 22 |
-
from moviepy.editor import *
|
| 23 |
import librosa
|
| 24 |
import python_speech_features
|
| 25 |
import importlib.util
|
|
@@ -29,6 +32,7 @@ import time
|
|
| 29 |
import numpy as np
|
| 30 |
|
| 31 |
|
|
|
|
| 32 |
# Disable Gradio analytics to avoid network-related issues
|
| 33 |
gr.analytics_enabled = False
|
| 34 |
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
|
| 4 |
+
sys.path.insert(0, os.path.join(os.getcwd(), 'code'))
|
| 5 |
import argparse
|
| 6 |
from datetime import datetime
|
| 7 |
from pathlib import Path
|
|
|
|
| 13 |
import librosa
|
| 14 |
import python_speech_features
|
| 15 |
import time
|
| 16 |
+
from code.LIA_Model import *
|
| 17 |
import os
|
| 18 |
from tqdm import tqdm
|
| 19 |
import argparse
|
| 20 |
import numpy as np
|
| 21 |
from torchvision import transforms
|
| 22 |
+
from code.templates import *
|
| 23 |
import argparse
|
| 24 |
import shutil
|
| 25 |
+
from code.moviepy.editor import *
|
| 26 |
import librosa
|
| 27 |
import python_speech_features
|
| 28 |
import importlib.util
|
|
|
|
| 32 |
import numpy as np
|
| 33 |
|
| 34 |
|
| 35 |
+
|
| 36 |
# Disable Gradio analytics to avoid network-related issues
|
| 37 |
gr.analytics_enabled = False
|
| 38 |
|