st0bb3n commited on
Commit
d40505d
1 Parent(s): 196afa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -23,6 +23,7 @@ def image2speech(image):
23
 
24
  fastspeech = gr.Interface.load("huggingface/facebook/fastspeech2-en-ljspeech")
25
 
 
26
  app = gr.Interface(fn=image2speech,
27
  inputs="image",
28
  title="Image to speech",
@@ -30,5 +31,14 @@ app = gr.Interface(fn=image2speech,
30
  examples=["remotecontrol.jpg", "calculator.jpg", "cellphone.jpg"],
31
  allow_flagging="never",
32
  outputs=["audio", "text"])
 
33
 
34
- app.launch(cache_examples=True)
 
 
 
 
 
 
 
 
 
23
 
24
  fastspeech = gr.Interface.load("huggingface/facebook/fastspeech2-en-ljspeech")
25
 
26
+ '''
27
  app = gr.Interface(fn=image2speech,
28
  inputs="image",
29
  title="Image to speech",
 
31
  examples=["remotecontrol.jpg", "calculator.jpg", "cellphone.jpg"],
32
  allow_flagging="never",
33
  outputs=["audio", "text"])
34
+
35
 
36
+ app.launch(cache_examples=True)
37
+ '''
38
+
39
+ app = gr.Interface(fn=image2speech,
40
+ inputs=gr.inputs.Image(label="Input Image", source="webcam"),
41
+ live=True,
42
+ outputs=["audio", "text"])
43
+
44
+ app.launch()