LiuZichen commited on
Commit
6ba3f5f
1 Parent(s): fdc6404

Fix queueing bug

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- demo.queue(max_size=20, status_update_rate=0.1)
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")