ysharma HF staff commited on
Commit
be45df9
1 Parent(s): 688a764
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,14 +23,14 @@ def engine(text_input):
23
  #run(prompt, steps, width, height, images, scale)
24
 
25
  speech = text2speech(text_input)
26
- return entities, speech #, img
27
 
28
  app = gr.Interface(fn=engine,
29
  inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
30
  #live=True,
31
  description="Takes a text as input and reads it out to you.",
32
- outputs=[gr.outputs.Textbox(type="auto", label="Text"), gr.outputs.Audio(type="file", label="Speech Answer"),],
33
- #gr.outputs.Image(type="pil", label="output image")],
34
  examples=["On April 17th Sunday George celebrated Easter. He is staying at Empire State building with his parents. He is a citizen of Canada and speaks English and French fluently. His role model is former president Obama. He got 1000 dollar from his mother to visit Disney World and to buy new iPhone mobile. George likes watching Game of Thrones."]
35
  ).launch(debug=True)
36
 
 
23
  #run(prompt, steps, width, height, images, scale)
24
 
25
  speech = text2speech(text_input)
26
+ return entities, speech, img
27
 
28
  app = gr.Interface(fn=engine,
29
  inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
30
  #live=True,
31
  description="Takes a text as input and reads it out to you.",
32
+ outputs=[gr.outputs.Textbox(type="auto", label="Text"), gr.outputs.Audio(type="file", label="Speech Answer"), #],
33
+ gr.outputs.Image(type="pil", label="output image")],
34
  examples=["On April 17th Sunday George celebrated Easter. He is staying at Empire State building with his parents. He is a citizen of Canada and speaks English and French fluently. His role model is former president Obama. He got 1000 dollar from his mother to visit Disney World and to buy new iPhone mobile. George likes watching Game of Thrones."]
35
  ).launch(debug=True)
36