Rajagopal commited on
Commit
d912095
·
1 Parent(s): 9a9792d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -96,7 +96,7 @@ def inference(
96
  elif task == "audio-text":
97
  result = audio_text_zeroshot(audio, text_list)
98
  elif task == "video-text":
99
- result = video_text_zeroshot(image2, text_list)
100
  else:
101
  raise NotImplementedError
102
  return result
@@ -117,7 +117,7 @@ def main():
117
  gr.inputs.Textbox(lines=1, label="Candidate texts"),
118
  gr.inputs.Image(type="filepath", label="Input image"),
119
  gr.inputs.Audio(type="filepath", label="Input audio"),
120
- gr.inputs.Image(type="filepath", label="Input image"),
121
  ]
122
 
123
  iface = gr.Interface(
 
96
  elif task == "audio-text":
97
  result = audio_text_zeroshot(audio, text_list)
98
  elif task == "video-text":
99
+ result = video_text_zeroshot(image, text_list)
100
  else:
101
  raise NotImplementedError
102
  return result
 
117
  gr.inputs.Textbox(lines=1, label="Candidate texts"),
118
  gr.inputs.Image(type="filepath", label="Input image"),
119
  gr.inputs.Audio(type="filepath", label="Input audio"),
120
+ gr.inputs.Image(type="filepath", label="Input image2"),
121
  ]
122
 
123
  iface = gr.Interface(