davidna22 commited on
Commit
6f324bd
1 Parent(s): 0513f6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -27,8 +27,8 @@ image_tokens_list = ["black and white", "year 2023", "cartoon", "animated",
27
  "comic", "propaganda", "news", "classic disney style",
28
  "holliemengert artstyle"]
29
  topic_prompt_default = "Write a short tweet with less than 500 characters as if you were a real person with social media lingo and hashtags on this topic: "
30
- pool = multiprocessing.Pool()
31
- num_processes = pool._processes
32
  global tootbot_app
33
 
34
 
@@ -398,4 +398,4 @@ with gr.Blocks() as demo:
398
  accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
399
 
400
  # demo.queue(concurrency_count=1, max_size=num_processes)
401
- demo.launch(share=False)
 
27
  "comic", "propaganda", "news", "classic disney style",
28
  "holliemengert artstyle"]
29
  topic_prompt_default = "Write a short tweet with less than 500 characters as if you were a real person with social media lingo and hashtags on this topic: "
30
+ # pool = multiprocessing.Pool()
31
+ # num_processes = pool._processes
32
  global tootbot_app
33
 
34
 
 
398
  accept_checkbox.change(fn=enable_inputs, inputs=[], outputs=[user_consent_block, main_block], queue=False)
399
 
400
  # demo.queue(concurrency_count=1, max_size=num_processes)
401
+ demo.launch(share=False, show_api=False)