Spaces:
Running
on
L4
Running
on
L4
Fix queueing bug
Browse files
app.py
CHANGED
@@ -303,10 +303,10 @@ with gr.Blocks(css=css) as demo:
|
|
303 |
with gr.Row(elem_classes="row"):
|
304 |
text = gr.Markdown(
|
305 |
"""
|
306 |
-
Note: This demo is governed by the license of CC BY-NC 4.0 We strongly advise users not to knowingly generate or allow others to knowingly generate harmful content, including hate speech, violence, pornography, deception, etc. (注:本演示受CC BY-NC的许可协议限制。我们强烈建议,用户不应传播及不应允许他人传播以下内容,包括但不限于仇恨言论、暴力、色情、欺诈相关的有害信息。)
|
307 |
""")
|
308 |
-
|
309 |
-
|
310 |
app = FastAPI()
|
311 |
|
312 |
@app.post("/magic_quill/guess_prompt")
|
|
|
303 |
with gr.Row(elem_classes="row"):
|
304 |
text = gr.Markdown(
|
305 |
"""
|
306 |
+
Note: This demo is governed by the license of CC BY-NC 4.0. We strongly advise users not to knowingly generate or allow others to knowingly generate harmful content, including hate speech, violence, pornography, deception, etc. (注:本演示受CC BY-NC的许可协议限制。我们强烈建议,用户不应传播及不应允许他人传播以下内容,包括但不限于仇恨言论、暴力、色情、欺诈相关的有害信息。)
|
307 |
""")
|
308 |
+
demo.queue(max_size=20, status_update_rate=0.1)
|
309 |
+
|
310 |
app = FastAPI()
|
311 |
|
312 |
@app.post("/magic_quill/guess_prompt")
|