ysharma HF Staff commited on
Commit
6422e95
·
1 Parent(s): 4e44b49
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -18,13 +18,14 @@ def engine(text_input):
18
  #outputs=[gr.outputs.Image(type="pil", label="output image"),gr.outputs.Carousel(label="Individual images",components=["image"]),gr.outputs.Textbox(label="Error")], )
19
  #title="Convert text to image")
20
  #img = img_intfc[0]
21
- img, carou, error = img_intfc('George','50','256','256','1',10)
 
22
  #img = img[0]
23
  #inputs=['George',50,256,256,1,10]
24
  #run(prompt, steps, width, height, images, scale)
25
 
26
  #speech = text2speech(text_input)
27
- return (img, carou, None) #entities, speech, img
28
 
29
  app = gr.Interface(fn=engine,
30
  inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
 
18
  #outputs=[gr.outputs.Image(type="pil", label="output image"),gr.outputs.Carousel(label="Individual images",components=["image"]),gr.outputs.Textbox(label="Error")], )
19
  #title="Convert text to image")
20
  #img = img_intfc[0]
21
+ (img, carou, error) = img_intfc('George','50','256','256','1',10)
22
+ tuple_return = (img, carou, error)
23
  #img = img[0]
24
  #inputs=['George',50,256,256,1,10]
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"),