Spaces:
Runtime error
Runtime error
| import torch | |
| import gradio | |
| def doo(text_prompt): | |
| return | |
| iface = gr.Interface( | |
| fn=doo, | |
| inputs=gr.Textbox(label="Prompt"), | |
| outputs=[ | |
| gr.Image(label="Generated Image"), | |
| ] | |
| ) | |
| if __name__ == "__main__": | |
| iface.launch() |