Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def engine(text_input):
|
|
| 12 |
#entities_num = len(entities)
|
| 13 |
|
| 14 |
#img = run(text_input,'50','256','256','1',10) #entities[0][0]
|
| 15 |
-
img_intfc = gr.Interface.load("spaces/multimodalart/latentdiffusion")(text_input,'50','256','256','1',10) #inputs={'prompt':text_input,'steps':'50','width':'256','height':'256','images':'1','scale':10}).launch()
|
| 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")
|
|
@@ -28,7 +28,7 @@ def engine(text_input):
|
|
| 28 |
#run(prompt, steps, width, height, images, scale)
|
| 29 |
|
| 30 |
#speech = text2speech(text_input)
|
| 31 |
-
return img_intfc
|
| 32 |
|
| 33 |
image = gr.outputs.Image(type="pil", label="output image")
|
| 34 |
app = gr.Interface(fn=engine,
|
|
|
|
| 12 |
#entities_num = len(entities)
|
| 13 |
|
| 14 |
#img = run(text_input,'50','256','256','1',10) #entities[0][0]
|
| 15 |
+
img_intfc = gr.Interface.load("spaces/multimodalart/latentdiffusion")(text_input,'50','256','256','1',10).launch() #inputs={'prompt':text_input,'steps':'50','width':'256','height':'256','images':'1','scale':10}).launch()
|
| 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")
|
|
|
|
| 28 |
#run(prompt, steps, width, height, images, scale)
|
| 29 |
|
| 30 |
#speech = text2speech(text_input)
|
| 31 |
+
return img_intfc #entities, speech, img
|
| 32 |
|
| 33 |
image = gr.outputs.Image(type="pil", label="output image")
|
| 34 |
app = gr.Interface(fn=engine,
|