yzweak commited on
Commit
9648b0a
·
1 Parent(s): 0436a89

Revert to correct Gradio queue configuration

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -453,6 +453,7 @@ ACTIVATE_CAROUSEEL_JS = '''
453
 
454
  with gr.Blocks(theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
455
 
 
456
  gr.Markdown("# 🚀 PRAgent: Paper to Social Media Post")
457
  gr.Markdown("Upload a research paper PDF, and I will generate a social media post for Twitter or Xiaohongshu, complete with images and platform-specific styling.")
458
 
@@ -491,7 +492,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
491
  language_select
492
  ],
493
  outputs=[status_text, output_container, download_button]
494
- ).queue()
495
 
496
  # 链接 .then() 事件,在前一个事件成功后执行 JavaScript
497
  click_event.then(
 
453
 
454
  with gr.Blocks(theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
455
 
456
+ demo.queue()
457
  gr.Markdown("# 🚀 PRAgent: Paper to Social Media Post")
458
  gr.Markdown("Upload a research paper PDF, and I will generate a social media post for Twitter or Xiaohongshu, complete with images and platform-specific styling.")
459
 
 
492
  language_select
493
  ],
494
  outputs=[status_text, output_container, download_button]
495
+ )
496
 
497
  # 链接 .then() 事件,在前一个事件成功后执行 JavaScript
498
  click_event.then(