LiuZichen commited on
Commit
0a82fe2
·
verified ·
1 Parent(s): 7c83bcd

Fix Queueing Bug

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -306,7 +306,8 @@ with gr.Blocks(css=css) as demo:
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
- demo.queue(max_size=20, status_update_rate=0.1)
 
310
  app = FastAPI()
311
 
312
  @app.post("/magic_quill/guess_prompt")
 
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
+ gr.queue(max_size=20, status_update_rate=0.1)
310
+
311
  app = FastAPI()
312
 
313
  @app.post("/magic_quill/guess_prompt")