DebasishDhal99 commited on
Commit
be28c15
·
verified ·
1 Parent(s): b70ba64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ description_image = "Upload an image to extract text and translate it to English
23
 
24
  image_interface = gr.Interface(
25
  fn=src_image_to_eng_translator,
26
- inputs=gr.Image(label="Upload an Image", type="file"),
27
  outputs=gr.Textbox(label="Translated Text in English"),
28
  title="Image Text Extractor and Translator",
29
  description=description_image,
@@ -34,7 +34,7 @@ description_audio = "Upload an audio file to extract text and translate it to En
34
 
35
  audio_interface = gr.Interface(
36
  fn=src_audio_to_eng_translator,
37
- inputs=gr.Audio(label="Upload an Audio file", type="file"),
38
  outputs=gr.Textbox(label="Translated Text in English"),
39
  title=heading_audio,
40
  description=description_audio
 
23
 
24
  image_interface = gr.Interface(
25
  fn=src_image_to_eng_translator,
26
+ inputs=gr.Image(label="Upload an Image", type="filepath"),
27
  outputs=gr.Textbox(label="Translated Text in English"),
28
  title="Image Text Extractor and Translator",
29
  description=description_image,
 
34
 
35
  audio_interface = gr.Interface(
36
  fn=src_audio_to_eng_translator,
37
+ inputs=gr.Audio(label="Upload an Audio file", type="filepath"),
38
  outputs=gr.Textbox(label="Translated Text in English"),
39
  title=heading_audio,
40
  description=description_audio