Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,12 @@ def check_api(model_name):
|
|
29 |
return "api ready"
|
30 |
except :
|
31 |
return "api not ready yet"
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
from moviepy.editor import VideoFileClip
|
34 |
from moviepy.audio.AudioClip import AudioClip
|
|
|
29 |
return "api ready"
|
30 |
except :
|
31 |
return "api not ready yet"
|
32 |
+
elif model_name == "MusicGen":
|
33 |
+
try :
|
34 |
+
client = Client("https://facebook-musicgen.hf.space/")
|
35 |
+
return "api ready"
|
36 |
+
except :
|
37 |
+
return "api not ready yet"
|
38 |
|
39 |
from moviepy.editor import VideoFileClip
|
40 |
from moviepy.audio.AudioClip import AudioClip
|