Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
-
from queue import Queue
|
3 |
-
|
4 |
-
queue = Queue()
|
5 |
-
queue_threshold = 800
|
6 |
|
7 |
imagine = gr.Interface.load( "models/dreamlike-art/dreamlike-photoreal-2.0" )
|
8 |
|
9 |
-
with gr.Blocks(analytics_enabled=False) as app:
|
10 |
|
11 |
Prompt = gr.Textbox( label="Prompt" )
|
12 |
Imagine = gr.Button( "Imagine" )
|
@@ -14,5 +10,5 @@ with gr.Blocks(analytics_enabled=False) as app:
|
|
14 |
|
15 |
Imagine.click( imagine, inputs=[ Prompt ], outputs=[ Image ], api_name="imagine" )
|
16 |
|
17 |
-
app.launch( enable_queue=
|
18 |
block.queue( concurrency_count=2 )
|
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
2 |
|
3 |
imagine = gr.Interface.load( "models/dreamlike-art/dreamlike-photoreal-2.0" )
|
4 |
|
5 |
+
with gr.Blocks( analytics_enabled=False ) as app:
|
6 |
|
7 |
Prompt = gr.Textbox( label="Prompt" )
|
8 |
Imagine = gr.Button( "Imagine" )
|
|
|
10 |
|
11 |
Imagine.click( imagine, inputs=[ Prompt ], outputs=[ Image ], api_name="imagine" )
|
12 |
|
13 |
+
app.launch( enable_queue=False, inline=True )
|
14 |
block.queue( concurrency_count=2 )
|