ysharma HF Staff commited on
Commit
a3c15d4
·
1 Parent(s): 6422e95
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,14 +25,14 @@ def engine(text_input):
25
  #run(prompt, steps, width, height, images, scale)
26
 
27
  #speech = text2speech(text_input)
28
- return tuple_return #entities, speech, img
29
 
30
  app = gr.Interface(fn=engine,
31
  inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
32
  #live=True,
33
  description="Takes a text as input and reads it out to you.",
34
  outputs=[#gr.outputs.Textbox(type="auto", label="Text"),gr.outputs.Audio(type="file", label="Speech Answer"),
35
- gr.outputs.Image(type="pil", label="output image"), gr.outputs.Carousel(label="Individual images",components=["image"]), gr.outputs.Textbox(label="Error")],
36
  examples = ['Apple']
37
  #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."]
38
  ).launch(debug=True) #(enable_queue=True)
 
25
  #run(prompt, steps, width, height, images, scale)
26
 
27
  #speech = text2speech(text_input)
28
+ return tuple_return[0] #entities, speech, img
29
 
30
  app = gr.Interface(fn=engine,
31
  inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
32
  #live=True,
33
  description="Takes a text as input and reads it out to you.",
34
  outputs=[#gr.outputs.Textbox(type="auto", label="Text"),gr.outputs.Audio(type="file", label="Speech Answer"),
35
+ gr.outputs.Image(type="pil", label="output image")], #, gr.outputs.Carousel(label="Individual images",components=["image"]), gr.outputs.Textbox(label="Error")],
36
  examples = ['Apple']
37
  #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."]
38
  ).launch(debug=True) #(enable_queue=True)