Amir Zait commited on
Commit
8ee95b0
1 Parent(s): 6c6d0a0

added stated line

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -86,12 +86,12 @@ def parse_transcription(wav_file):
86
 
87
  # generate image
88
  image = generate_image(translated)
89
- return image
90
 
91
- output = gr.outputs.Image(label='')
92
  input_mic = gr.inputs.Audio(source="microphone", type="file", optional=True)
93
 
94
- gr.Interface(parse_transcription, inputs=[input_mic], outputs=output,
95
  analytics_enabled=False,
96
  show_tips=False,
97
  theme='huggingface',
 
86
 
87
  # generate image
88
  image = generate_image(translated)
89
+ return transcription, image
90
 
91
+ outputs = [gr.outputs.Textbox(label="transcript"), gr.outputs.Image(label='')]
92
  input_mic = gr.inputs.Audio(source="microphone", type="file", optional=True)
93
 
94
+ gr.Interface(parse_transcription, inputs=[input_mic], outputs=outputs,
95
  analytics_enabled=False,
96
  show_tips=False,
97
  theme='huggingface',