Spaces:
Runtime error
Runtime error
updated interface to be much more readable
Browse files
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=
|
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=[
|
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()
|