Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
f2a7032
1
Parent(s):
f0fdc92
Update app.py
Browse files
app.py
CHANGED
@@ -82,6 +82,10 @@ def send_it8(inputs, noise_level, proc1=proc1):
|
|
82 |
def get_prompts(prompt_text):
|
83 |
return text_gen(prompt_text)
|
84 |
|
|
|
|
|
|
|
|
|
85 |
|
86 |
|
87 |
with gr.Blocks() as myface:
|
|
|
82 |
def get_prompts(prompt_text):
|
83 |
return text_gen(prompt_text)
|
84 |
|
85 |
+
thread = threading.Thread(target=get_prompts, args=(prompt_text,), daemon=True)
|
86 |
+
thread.start()
|
87 |
+
thread.join()
|
88 |
+
|
89 |
|
90 |
|
91 |
with gr.Blocks() as myface:
|