ysharma HF staff commited on
Commit
8b67f4c
1 Parent(s): 04c5803
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,8 +13,8 @@ def engine(text_input):
13
  entities_num = len(entities)
14
 
15
  #img_intfc = gr.Interface.load("spaces/multimodalart/latentdiffusion")
16
- img_intfc = gr.Interface.load("spaces/multimodalart/latentdiffusion", inputs=[gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text")],)
17
- #outputs=[gr.outputs.Image(type="pil", label="output image"),],
18
  #title="Convert text to image")
19
  img = img_intfc
20
  #img = img_intfc('George','50','256','256','1','10')
 
13
  entities_num = len(entities)
14
 
15
  #img_intfc = gr.Interface.load("spaces/multimodalart/latentdiffusion")
16
+ img_intfc = gr.Interface.load("spaces/multimodalart/latentdiffusion", inputs=[gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text"), gr.inputs.Textbox(lines=1, label="Input Text")],
17
+ outputs=[gr.outputs.Image(type="pil", label="output image"),gr.outputs.Carousel(label="Individual images",components=["image"]),gr.outputs.Textbox(label="Error")], )
18
  #title="Convert text to image")
19
  img = img_intfc
20
  #img = img_intfc('George','50','256','256','1','10')