Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
·
98c65f1
1
Parent(s):
077da18
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def send_it1(inputs, noise_level, proc1=proc1):
|
|
42 |
while queue.qsize() >= queue_threshold:
|
43 |
time.sleep(2)
|
44 |
queue.put(prompt_with_noise)
|
45 |
-
output1 = proc1(
|
46 |
return output1
|
47 |
|
48 |
def send_it2(inputs, noise_level, proc1=proc1):
|
@@ -50,7 +50,7 @@ def send_it2(inputs, noise_level, proc1=proc1):
|
|
50 |
while queue.qsize() >= queue_threshold:
|
51 |
time.sleep(2)
|
52 |
queue.put(prompt_with_noise)
|
53 |
-
output2 = proc1(
|
54 |
return output2
|
55 |
|
56 |
def send_it3(inputs, noise_level, proc1=proc1):
|
@@ -58,7 +58,7 @@ def send_it3(inputs, noise_level, proc1=proc1):
|
|
58 |
while queue.qsize() >= queue_threshold:
|
59 |
time.sleep(2)
|
60 |
queue.put(prompt_with_noise)
|
61 |
-
output3 = proc1(
|
62 |
return output3
|
63 |
|
64 |
def send_it4(inputs, noise_level, proc1=proc1):
|
@@ -66,7 +66,7 @@ def send_it4(inputs, noise_level, proc1=proc1):
|
|
66 |
while queue.qsize() >= queue_threshold:
|
67 |
time.sleep(2)
|
68 |
queue.put(prompt_with_noise)
|
69 |
-
output4 = proc1(
|
70 |
return output4
|
71 |
|
72 |
def send_it5(inputs, noise_level, proc1=proc1):
|
@@ -74,7 +74,7 @@ def send_it5(inputs, noise_level, proc1=proc1):
|
|
74 |
while queue.qsize() >= queue_threshold:
|
75 |
time.sleep(2)
|
76 |
queue.put(prompt_with_noise)
|
77 |
-
output5 = proc1(
|
78 |
return output5
|
79 |
|
80 |
def send_it6(inputs, noise_level, proc1=proc1):
|
@@ -82,7 +82,7 @@ def send_it6(inputs, noise_level, proc1=proc1):
|
|
82 |
while queue.qsize() >= queue_threshold:
|
83 |
time.sleep(2)
|
84 |
queue.put(prompt_with_noise)
|
85 |
-
output6 = proc1(
|
86 |
return output6
|
87 |
|
88 |
def send_it7(inputs, noise_level, proc1=proc1):
|
@@ -90,7 +90,7 @@ def send_it7(inputs, noise_level, proc1=proc1):
|
|
90 |
while queue.qsize() >= queue_threshold:
|
91 |
time.sleep(2)
|
92 |
queue.put(prompt_with_noise)
|
93 |
-
output7 = proc1(
|
94 |
return output7
|
95 |
|
96 |
def send_it8(inputs, noise_level, proc1=proc1):
|
@@ -98,18 +98,16 @@ def send_it8(inputs, noise_level, proc1=proc1):
|
|
98 |
while queue.qsize() >= queue_threshold:
|
99 |
time.sleep(2)
|
100 |
queue.put(prompt_with_noise)
|
101 |
-
output8 = proc1(
|
102 |
return output8
|
103 |
|
104 |
|
105 |
def get_prompts(prompt_text):
|
106 |
-
|
107 |
-
time.sleep(2)
|
108 |
-
queue.put(prompt_text)
|
109 |
-
output = text_gen(queue.get())
|
110 |
return output
|
111 |
|
112 |
|
|
|
113 |
with gr.Blocks() as myface:
|
114 |
with gr.Row():
|
115 |
|
|
|
42 |
while queue.qsize() >= queue_threshold:
|
43 |
time.sleep(2)
|
44 |
queue.put(prompt_with_noise)
|
45 |
+
output1 = proc1(prompt_with_noise)
|
46 |
return output1
|
47 |
|
48 |
def send_it2(inputs, noise_level, proc1=proc1):
|
|
|
50 |
while queue.qsize() >= queue_threshold:
|
51 |
time.sleep(2)
|
52 |
queue.put(prompt_with_noise)
|
53 |
+
output2 = proc1(prompt_with_noise)
|
54 |
return output2
|
55 |
|
56 |
def send_it3(inputs, noise_level, proc1=proc1):
|
|
|
58 |
while queue.qsize() >= queue_threshold:
|
59 |
time.sleep(2)
|
60 |
queue.put(prompt_with_noise)
|
61 |
+
output3 = proc1(prompt_with_noise)
|
62 |
return output3
|
63 |
|
64 |
def send_it4(inputs, noise_level, proc1=proc1):
|
|
|
66 |
while queue.qsize() >= queue_threshold:
|
67 |
time.sleep(2)
|
68 |
queue.put(prompt_with_noise)
|
69 |
+
output4 = proc1(prompt_with_noise)
|
70 |
return output4
|
71 |
|
72 |
def send_it5(inputs, noise_level, proc1=proc1):
|
|
|
74 |
while queue.qsize() >= queue_threshold:
|
75 |
time.sleep(2)
|
76 |
queue.put(prompt_with_noise)
|
77 |
+
output5 = proc1(prompt_with_noise)
|
78 |
return output5
|
79 |
|
80 |
def send_it6(inputs, noise_level, proc1=proc1):
|
|
|
82 |
while queue.qsize() >= queue_threshold:
|
83 |
time.sleep(2)
|
84 |
queue.put(prompt_with_noise)
|
85 |
+
output6 = proc1(prompt_with_noise)
|
86 |
return output6
|
87 |
|
88 |
def send_it7(inputs, noise_level, proc1=proc1):
|
|
|
90 |
while queue.qsize() >= queue_threshold:
|
91 |
time.sleep(2)
|
92 |
queue.put(prompt_with_noise)
|
93 |
+
output7 = proc1(prompt_with_noise)
|
94 |
return output7
|
95 |
|
96 |
def send_it8(inputs, noise_level, proc1=proc1):
|
|
|
98 |
while queue.qsize() >= queue_threshold:
|
99 |
time.sleep(2)
|
100 |
queue.put(prompt_with_noise)
|
101 |
+
output8 = proc1(prompt_with_noise)
|
102 |
return output8
|
103 |
|
104 |
|
105 |
def get_prompts(prompt_text):
|
106 |
+
output = text_gen(prompt_text)
|
|
|
|
|
|
|
107 |
return output
|
108 |
|
109 |
|
110 |
+
|
111 |
with gr.Blocks() as myface:
|
112 |
with gr.Row():
|
113 |
|