Spaces:
Runtime error
Runtime error
app.py
CHANGED
@@ -12,8 +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 |
-
|
16 |
-
img_intfc = gr.Interface.load("spaces/multimodalart/latentdiffusion", inputs=inputs).launch()
|
17 |
#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")],
|
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")
|
@@ -35,10 +34,10 @@ image = gr.outputs.Image(type="pil", label="output image")
|
|
35 |
app = gr.Interface(fn=engine,
|
36 |
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
|
37 |
#live=True,
|
38 |
-
description="Takes a text as input and reads it out to you.",
|
39 |
#outputs=[#gr.outputs.Textbox(type="auto", label="Text"),gr.outputs.Audio(type="file", label="Speech Answer"),
|
40 |
outputs= image, #gr.outputs.Carousel(label="Individual images",components=["image"]), #, gr.outputs.Textbox(label="Error")],
|
41 |
examples = ['Apple']
|
|
|
42 |
#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."]
|
43 |
).launch(debug=True) #(enable_queue=True)
|
44 |
|
|
|
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", inputs=[text_input,'50','256','256','1',10], title="text-to-image").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")
|
|
|
34 |
app = gr.Interface(fn=engine,
|
35 |
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
|
36 |
#live=True,
|
|
|
37 |
#outputs=[#gr.outputs.Textbox(type="auto", label="Text"),gr.outputs.Audio(type="file", label="Speech Answer"),
|
38 |
outputs= image, #gr.outputs.Carousel(label="Individual images",components=["image"]), #, gr.outputs.Textbox(label="Error")],
|
39 |
examples = ['Apple']
|
40 |
+
description="Takes a text as input and reads it out to you.",
|
41 |
#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."]
|
42 |
).launch(debug=True) #(enable_queue=True)
|
43 |
|