ysharma HF staff commited on
Commit
4c3713a
1 Parent(s): 3e0d84e
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ def engine(text_input):
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",outputs=gr.outputs.Image(type="pil", label="output image"))
16
  #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'),],
17
  #outputs=[gr.outputs.Image(type="pil", label="output image"),],
18
  #title="Convert text to image")
@@ -28,7 +28,7 @@ app = gr.Interface(fn=engine,
28
  #live=True,
29
  description="Takes a text as input and reads it out to you.",
30
  outputs=[gr.outputs.Textbox(type="auto", label="Text"), gr.outputs.Audio(type="file", label="Speech Answer"),
31
- gr.outputs.Image(type="pil", label="output image")],
32
  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."]
33
  ).launch(debug=True)
34
 
 
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",outputs=gr.outputs.Image(type="file", label="output image"))
16
  #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'),],
17
  #outputs=[gr.outputs.Image(type="pil", label="output image"),],
18
  #title="Convert text to image")
 
28
  #live=True,
29
  description="Takes a text as input and reads it out to you.",
30
  outputs=[gr.outputs.Textbox(type="auto", label="Text"), gr.outputs.Audio(type="file", label="Speech Answer"),
31
+ gr.outputs.Image(type="file", label="output image")],
32
  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."]
33
  ).launch(debug=True)
34