Spaces:
Runtime error
Runtime error
File size: 316 Bytes
f640be4 054be50 f640be4 d2378f8 5db3d86 627f791 5db3d86 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from text_to_image import TextToImageTool
import gradio as gr
tool = TextToImageTool()
def fn(*args, **kwargs):
return tool(*args, **kwargs)
gr.Interface(
fn=fn,
inputs=tool.inputs,
outputs=tool.outputs,
title=tool.__name__,
article=tool.description,
).queue(concurrency_count=5).launch()
|