fffiloni commited on
Commit
22bd95b
1 Parent(s): 13e8b80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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