tonic commited on
Commit
d06a6fd
1 Parent(s): b958361

add interface function

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -297,6 +297,9 @@ def update_outputs(image, file, audio, text, input_language, target_language):
297
  *translated_phrases_outputs
298
  )
299
 
 
 
 
300
  # Create the Gradio interface
301
  iface = gr.Interface(fn=interface_func, inputs=inputs, outputs=outputs, title=title, description=description)
302
 
 
297
  *translated_phrases_outputs
298
  )
299
 
300
+ def interface_func(image, file, audio, text, input_language, target_language):
301
+ return update_outputs(image, file, audio, text, input_language, target_language)
302
+
303
  # Create the Gradio interface
304
  iface = gr.Interface(fn=interface_func, inputs=inputs, outputs=outputs, title=title, description=description)
305