Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|