imagine / app.py
jin-nin's picture
Update app.py
b3e4ce2
raw
history blame
485 Bytes
import gradio as gr
imagine = gr.Interface.load( "models/dreamlike-art/dreamlike-photoreal-2.0" )
with gr.Blocks( analytics_enabled=False ) as app:
Prompt = gr.Textbox( label="Prompt" )
Imagine = gr.Button( "Imagine" )
Image = gr.Image()
Info = gr.Markdown( "# [$hyoo_artist](https://artist.hyoo.ru/)" )
Imagine.click( imagine, inputs=[ Prompt ], outputs=[ Image ], api_name="imagine" )
app.launch( inline=True )
block.queue( concurrency_count=2 )