Update app.py
Browse files
app.py
CHANGED
@@ -56,11 +56,11 @@ def get_caption(image_in):
|
|
56 |
return result
|
57 |
|
58 |
def get_magnet(prompt):
|
59 |
-
amended_prompt = f"
|
60 |
print(amended_prompt)
|
61 |
client = Client("https://fffiloni-magnet.hf.space/--replicas/oo8sb/")
|
62 |
result = client.predict(
|
63 |
-
"facebook/audio-magnet-
|
64 |
"", # str in 'Model Path (custom models)' Textbox component
|
65 |
amended_prompt, # str in 'Input Text' Textbox component
|
66 |
3, # float in 'Temperature' Number component
|
|
|
56 |
return result
|
57 |
|
58 |
def get_magnet(prompt):
|
59 |
+
amended_prompt = f"{prompt}"
|
60 |
print(amended_prompt)
|
61 |
client = Client("https://fffiloni-magnet.hf.space/--replicas/oo8sb/")
|
62 |
result = client.predict(
|
63 |
+
"facebook/audio-magnet-medium", # Literal['facebook/magnet-small-10secs', 'facebook/magnet-medium-10secs', 'facebook/magnet-small-30secs', 'facebook/magnet-medium-30secs', 'facebook/audio-magnet-small', 'facebook/audio-magnet-medium'] in 'Model' Radio component
|
64 |
"", # str in 'Model Path (custom models)' Textbox component
|
65 |
amended_prompt, # str in 'Input Text' Textbox component
|
66 |
3, # float in 'Temperature' Number component
|