text-image / app.py
hema1's picture
Update app.py
4e62b13
raw
history blame contribute delete
320 Bytes
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="TextToImageTool",
article=tool.description,
).queue(concurrency_count=5).launch()