Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
36a5b6f
1
Parent(s):
966f38f
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def send_it1(inputs, noise_level, proc1=proc1):
|
|
24 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
25 |
if queue_length_counter >= 15:
|
26 |
if not queue.empty():
|
27 |
-
queue.clear()
|
28 |
queue_length_counter = 0
|
29 |
output1 = proc1(prompt_with_noise)
|
30 |
queue_length_counter += 1
|
@@ -36,7 +36,7 @@ def send_it2(inputs, noise_level, proc1=proc1):
|
|
36 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
37 |
if queue_length_counter >= 15:
|
38 |
if not queue.empty():
|
39 |
-
queue.clear()
|
40 |
queue_length_counter = 0
|
41 |
output2 = proc1(prompt_with_noise)
|
42 |
queue_length_counter += 1
|
@@ -48,7 +48,7 @@ def send_it3(inputs, noise_level, proc1=proc1):
|
|
48 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
49 |
if queue_length_counter >= 15:
|
50 |
if not queue.empty():
|
51 |
-
queue.clear()
|
52 |
queue_length_counter = 0
|
53 |
output3 = proc1(prompt_with_noise)
|
54 |
queue_length_counter += 1
|
@@ -60,7 +60,7 @@ def send_it4(inputs, noise_level, proc1=proc1):
|
|
60 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
61 |
if queue_length_counter >= 15:
|
62 |
if not queue.empty():
|
63 |
-
queue.clear()
|
64 |
queue_length_counter = 0
|
65 |
output4 = proc1(prompt_with_noise)
|
66 |
queue_length_counter += 1
|
@@ -72,7 +72,7 @@ def send_it5(inputs, noise_level, proc5=proc5):
|
|
72 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
73 |
if queue_length_counter >= 15:
|
74 |
if not queue.empty():
|
75 |
-
queue.clear()
|
76 |
queue_length_counter = 0
|
77 |
output5 = proc5(prompt_with_noise)
|
78 |
queue_length_counter += 1
|
@@ -84,7 +84,7 @@ def send_it6(inputs, noise_level, proc5=proc5):
|
|
84 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
85 |
if queue_length_counter >= 15:
|
86 |
if not queue.empty():
|
87 |
-
queue.clear()
|
88 |
queue_length_counter = 0
|
89 |
output6 = proc5(prompt_with_noise)
|
90 |
queue_length_counter += 1
|
@@ -96,7 +96,7 @@ def send_it7(inputs, noise_level, proc5=proc5):
|
|
96 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
97 |
if queue_length_counter >= 15:
|
98 |
if not queue.empty():
|
99 |
-
queue.clear()
|
100 |
queue_length_counter = 0
|
101 |
output7 = proc5(prompt_with_noise)
|
102 |
queue_length_counter += 1
|
@@ -108,7 +108,7 @@ def send_it8(inputs, noise_level, proc5=proc5):
|
|
108 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
109 |
if queue_length_counter >= 15:
|
110 |
if not queue.empty():
|
111 |
-
queue.clear()
|
112 |
queue_length_counter = 0
|
113 |
output8 = proc5(prompt_with_noise)
|
114 |
queue_length_counter += 1
|
@@ -121,7 +121,7 @@ def get_prompts(prompt_text):
|
|
121 |
global queue_length_counter
|
122 |
if queue_length_counter >= 15:
|
123 |
if not queue.empty():
|
124 |
-
queue.clear()
|
125 |
queue_length_counter = 0
|
126 |
output = text_gen(prompt_text)
|
127 |
queue_length_counter += 1
|
|
|
24 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
25 |
if queue_length_counter >= 15:
|
26 |
if not queue.empty():
|
27 |
+
queue.queue.clear()
|
28 |
queue_length_counter = 0
|
29 |
output1 = proc1(prompt_with_noise)
|
30 |
queue_length_counter += 1
|
|
|
36 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
37 |
if queue_length_counter >= 15:
|
38 |
if not queue.empty():
|
39 |
+
queue.queue.clear()
|
40 |
queue_length_counter = 0
|
41 |
output2 = proc1(prompt_with_noise)
|
42 |
queue_length_counter += 1
|
|
|
48 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
49 |
if queue_length_counter >= 15:
|
50 |
if not queue.empty():
|
51 |
+
queue.queue.clear()
|
52 |
queue_length_counter = 0
|
53 |
output3 = proc1(prompt_with_noise)
|
54 |
queue_length_counter += 1
|
|
|
60 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
61 |
if queue_length_counter >= 15:
|
62 |
if not queue.empty():
|
63 |
+
queue.queue.clear()
|
64 |
queue_length_counter = 0
|
65 |
output4 = proc1(prompt_with_noise)
|
66 |
queue_length_counter += 1
|
|
|
72 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
73 |
if queue_length_counter >= 15:
|
74 |
if not queue.empty():
|
75 |
+
queue.queue.clear()
|
76 |
queue_length_counter = 0
|
77 |
output5 = proc5(prompt_with_noise)
|
78 |
queue_length_counter += 1
|
|
|
84 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
85 |
if queue_length_counter >= 15:
|
86 |
if not queue.empty():
|
87 |
+
queue.queue.clear()
|
88 |
queue_length_counter = 0
|
89 |
output6 = proc5(prompt_with_noise)
|
90 |
queue_length_counter += 1
|
|
|
96 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
97 |
if queue_length_counter >= 15:
|
98 |
if not queue.empty():
|
99 |
+
queue.queue.clear()
|
100 |
queue_length_counter = 0
|
101 |
output7 = proc5(prompt_with_noise)
|
102 |
queue_length_counter += 1
|
|
|
108 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
109 |
if queue_length_counter >= 15:
|
110 |
if not queue.empty():
|
111 |
+
queue.queue.clear()
|
112 |
queue_length_counter = 0
|
113 |
output8 = proc5(prompt_with_noise)
|
114 |
queue_length_counter += 1
|
|
|
121 |
global queue_length_counter
|
122 |
if queue_length_counter >= 15:
|
123 |
if not queue.empty():
|
124 |
+
queue.queue.clear()
|
125 |
queue_length_counter = 0
|
126 |
output = text_gen(prompt_text)
|
127 |
queue_length_counter += 1
|