Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ caption = gr.Blocks.load(name="spaces/SRDdev/Image-Caption")
|
|
9 |
audio_gen = gr.Blocks.load(name="spaces/fffiloni/audioldm-text-to-audio-generation-clone", api_key=token)
|
10 |
|
11 |
def infer(image_input, manual_caption):
|
12 |
-
if manual_caption ==
|
13 |
cap = caption(image_input, fn_index=0)
|
14 |
print("gpt2 caption: " + cap)
|
15 |
else:
|
|
|
9 |
audio_gen = gr.Blocks.load(name="spaces/fffiloni/audioldm-text-to-audio-generation-clone", api_key=token)
|
10 |
|
11 |
def infer(image_input, manual_caption):
|
12 |
+
if manual_caption == "":
|
13 |
cap = caption(image_input, fn_index=0)
|
14 |
print("gpt2 caption: " + cap)
|
15 |
else:
|