File size: 320 Bytes
46b67c7
 
 
 
 
 
 
 
 
 
 
 
 
 
4e62b13
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="TextToImageTool",
    article=tool.description,
).queue(concurrency_count=5).launch()