Spaces:
Runtime error
Runtime error
File size: 430 Bytes
c21c77f eaab55c c21c77f eaab55c c21c77f eaab55c c21c77f eaab55c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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( "Paint" )
Image = gr.Image()
Imagine.click( imagine, inputs=[ Prompt ], outputs=[ Image ], api_name="imagine" )
app.launch( enable_queue=True, inline=True )
block.queue( concurrency_count=2 )
|