Amir Zait commited on
Commit
793ea82
1 Parent(s): f7895ed

small fixes

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -2,7 +2,6 @@ import soundfile as sf
2
  import gradio as gr
3
  import jax
4
  import numpy as np
5
- import os
6
  from PIL import Image
7
  import random
8
  import sox
@@ -87,9 +86,9 @@ def parse_transcription(wav_file):
87
 
88
  # generate image
89
  image = generate_image(translated)
90
- return transcription, image
91
 
92
- outputs = [gr.outputs.Textbox(label="transcript"), gr.outputs.Image(label='')]
93
  input_mic = gr.inputs.Audio(source="microphone", type="file", optional=True)
94
 
95
  gr.Interface(parse_transcription, inputs=[input_mic], outputs=outputs,
 
2
  import gradio as gr
3
  import jax
4
  import numpy as np
 
5
  from PIL import Image
6
  import random
7
  import sox
 
86
 
87
  # generate image
88
  image = generate_image(translated)
89
+ return transcription, translated, image
90
 
91
+ outputs = [gr.outputs.Textbox(label="transcript"), gr.outputs.Textbox(label="translated prompet"), 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,