laizeqiang commited on
Commit
8d91ae4
1 Parent(s): 609538a
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -12,12 +12,12 @@ with gr.Blocks() as demo:
12
  <p align="center"><a href="https://github.com/Zeqiang-Lai/Anything2Image"><b>https://github.com/Zeqiang-Lai/Anything2Image</b></p>
13
  """)
14
  gr.Interface(fn=anything2img,
15
- inputs=[gr.Textbox(placeholder="Enter a prompt in addition to the audio, image, text condition below", label="Prompt (Optional)"),
16
- gr.Audio(label="Audio Condition"),
17
- gr.Image(label="Image Condition"),
18
- gr.Textbox(label="Text Condition"),
19
  ],
20
- outputs=[gr.Image(label="Generated Image")],
21
  examples=[['', 'assets/wav/dog_audio.wav', None, None],
22
  ['A painting', 'assets/wav/cat.wav', None, None],
23
  ['', 'assets/wav/wave.wav', 'assets/image/bird.png', None],
 
12
  <p align="center"><a href="https://github.com/Zeqiang-Lai/Anything2Image"><b>https://github.com/Zeqiang-Lai/Anything2Image</b></p>
13
  """)
14
  gr.Interface(fn=anything2img,
15
+ inputs=["text",
16
+ "audio",
17
+ "image",
18
+ "text",
19
  ],
20
+ outputs="text",
21
  examples=[['', 'assets/wav/dog_audio.wav', None, None],
22
  ['A painting', 'assets/wav/cat.wav', None, None],
23
  ['', 'assets/wav/wave.wav', 'assets/image/bird.png', None],