Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -8,12 +8,14 @@ def text2speech(text):
|
|
8 |
def engine(text_input):
|
9 |
ner = gr.Interface.load("huggingface/flair/ner-english-ontonotes-large")
|
10 |
entities = ner(text_input)
|
|
|
11 |
entities = [tupl for tupl in entities if None not in tupl]
|
12 |
entities_num = len(entities)
|
13 |
|
14 |
-
|
15 |
outputs=[gr.outputs.Image(type="pil", label="output image"),],
|
16 |
title="Convert text to image")
|
|
|
17 |
#inputs=['George',50,256,256,1,10]
|
18 |
#run(prompt, steps, width, height, images, scale)
|
19 |
|
|
|
8 |
def engine(text_input):
|
9 |
ner = gr.Interface.load("huggingface/flair/ner-english-ontonotes-large")
|
10 |
entities = ner(text_input)
|
11 |
+
|
12 |
entities = [tupl for tupl in entities if None not in tupl]
|
13 |
entities_num = len(entities)
|
14 |
|
15 |
+
img_intfc = gr.Interface.load("spaces/multimodalart/latentdiffusion", inputs=[gr.inputs.Textbox(default='George'), gr.inputs.Textbox(default='50'), gr.inputs.Textbox(default='256'), gr.inputs.Textbox(default='256'), gr.inputs.Textbox(default='1'), gr.inputs.Textbox(default='10'),],
|
16 |
outputs=[gr.outputs.Image(type="pil", label="output image"),],
|
17 |
title="Convert text to image")
|
18 |
+
img = img_intfc('George')
|
19 |
#inputs=['George',50,256,256,1,10]
|
20 |
#run(prompt, steps, width, height, images, scale)
|
21 |
|