fffiloni commited on
Commit
b6e8417
β€’
1 Parent(s): 8b282ff

Update app.py

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