st0bb3n commited on
Commit
8884faf
1 Parent(s): 9db1a5d

updated interface to be much more readable

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -36,10 +36,14 @@ app = gr.Interface(fn=image2speech,
36
  app.launch(cache_examples=True)
37
  '''
38
 
 
 
 
 
39
  app = gr.Interface(fn=image2speech,
40
- inputs=gr.inputs.Image(label="Camera", source="webcam"),
41
  live=True,
42
  description="Takes a snapshot of an object, identifies it, and then tell you what it is. \n Intended use is to help the visually impaired. Models and dataset used is listed on the linked models and dataset",
43
- outputs=["audio", "text"])
44
 
45
  app.launch()
 
36
  app.launch(cache_examples=True)
37
  '''
38
 
39
+ camera = gr.inputs.Image(label="Image from your camera", source="webcam")
40
+ read = gr.outputs.Textbox(type="auto", label="Text")
41
+ speak = gr.outputs.Audio(type="auto", label="Speech")
42
+
43
  app = gr.Interface(fn=image2speech,
44
+ inputs=camera,
45
  live=True,
46
  description="Takes a snapshot of an object, identifies it, and then tell you what it is. \n Intended use is to help the visually impaired. Models and dataset used is listed on the linked models and dataset",
47
+ outputs=[speak, read])
48
 
49
  app.launch()