Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
·
7cfd3da
1
Parent(s):
bea1f9d
Update app.py
Browse files
app.py
CHANGED
@@ -55,6 +55,7 @@ def send_it1(inputs, noise_level, proc1=proc1):
|
|
55 |
time.sleep(2)
|
56 |
queue.put(prompt_with_noise)
|
57 |
output1 = proc1(queue.get())
|
|
|
58 |
return output1
|
59 |
|
60 |
def send_it2(inputs, noise_level, proc1=proc1):
|
@@ -63,6 +64,7 @@ def send_it2(inputs, noise_level, proc1=proc1):
|
|
63 |
time.sleep(2)
|
64 |
queue.put(prompt_with_noise)
|
65 |
output2 = proc1(queue.get())
|
|
|
66 |
return output2
|
67 |
|
68 |
def send_it3(inputs, noise_level, proc1=proc1):
|
@@ -71,6 +73,7 @@ def send_it3(inputs, noise_level, proc1=proc1):
|
|
71 |
time.sleep(2)
|
72 |
queue.put(prompt_with_noise)
|
73 |
output3 = proc1(queue.get())
|
|
|
74 |
return output3
|
75 |
|
76 |
def send_it4(inputs, noise_level, proc1=proc1):
|
@@ -79,6 +82,7 @@ def send_it4(inputs, noise_level, proc1=proc1):
|
|
79 |
time.sleep(2)
|
80 |
queue.put(prompt_with_noise)
|
81 |
output4 = proc1(queue.get())
|
|
|
82 |
return output4
|
83 |
|
84 |
def send_it5(inputs, noise_level, proc1=proc1):
|
@@ -87,6 +91,7 @@ def send_it5(inputs, noise_level, proc1=proc1):
|
|
87 |
time.sleep(2)
|
88 |
queue.put(prompt_with_noise)
|
89 |
output5 = proc1(queue.get())
|
|
|
90 |
return output5
|
91 |
|
92 |
def send_it6(inputs, noise_level, proc1=proc1):
|
@@ -95,6 +100,7 @@ def send_it6(inputs, noise_level, proc1=proc1):
|
|
95 |
time.sleep(2)
|
96 |
queue.put(prompt_with_noise)
|
97 |
output6 = proc1(queue.get())
|
|
|
98 |
return output6
|
99 |
|
100 |
def send_it7(inputs, noise_level, proc1=proc1):
|
@@ -103,6 +109,7 @@ def send_it7(inputs, noise_level, proc1=proc1):
|
|
103 |
time.sleep(2)
|
104 |
queue.put(prompt_with_noise)
|
105 |
output7 = proc1(queue.get())
|
|
|
106 |
return output7
|
107 |
|
108 |
def send_it8(inputs, noise_level, proc1=proc1):
|
@@ -111,6 +118,7 @@ def send_it8(inputs, noise_level, proc1=proc1):
|
|
111 |
time.sleep(2)
|
112 |
queue.put(prompt_with_noise)
|
113 |
output8 = proc1(queue.get())
|
|
|
114 |
return output8
|
115 |
|
116 |
|
@@ -119,6 +127,7 @@ def get_prompts(prompt_text):
|
|
119 |
time.sleep(2)
|
120 |
queue.put(prompt_text)
|
121 |
output = text_gen(queue.get())
|
|
|
122 |
return output
|
123 |
|
124 |
|
|
|
55 |
time.sleep(2)
|
56 |
queue.put(prompt_with_noise)
|
57 |
output1 = proc1(queue.get())
|
58 |
+
queue.queue.clear() # Clear the queue after the output is generated
|
59 |
return output1
|
60 |
|
61 |
def send_it2(inputs, noise_level, proc1=proc1):
|
|
|
64 |
time.sleep(2)
|
65 |
queue.put(prompt_with_noise)
|
66 |
output2 = proc1(queue.get())
|
67 |
+
queue.queue.clear() # Clear the queue after the output is generated
|
68 |
return output2
|
69 |
|
70 |
def send_it3(inputs, noise_level, proc1=proc1):
|
|
|
73 |
time.sleep(2)
|
74 |
queue.put(prompt_with_noise)
|
75 |
output3 = proc1(queue.get())
|
76 |
+
queue.queue.clear() # Clear the queue after the output is generated
|
77 |
return output3
|
78 |
|
79 |
def send_it4(inputs, noise_level, proc1=proc1):
|
|
|
82 |
time.sleep(2)
|
83 |
queue.put(prompt_with_noise)
|
84 |
output4 = proc1(queue.get())
|
85 |
+
queue.queue.clear() # Clear the queue after the output is generated
|
86 |
return output4
|
87 |
|
88 |
def send_it5(inputs, noise_level, proc1=proc1):
|
|
|
91 |
time.sleep(2)
|
92 |
queue.put(prompt_with_noise)
|
93 |
output5 = proc1(queue.get())
|
94 |
+
queue.queue.clear() # Clear the queue after the output is generated
|
95 |
return output5
|
96 |
|
97 |
def send_it6(inputs, noise_level, proc1=proc1):
|
|
|
100 |
time.sleep(2)
|
101 |
queue.put(prompt_with_noise)
|
102 |
output6 = proc1(queue.get())
|
103 |
+
queue.queue.clear() # Clear the queue after the output is generated
|
104 |
return output6
|
105 |
|
106 |
def send_it7(inputs, noise_level, proc1=proc1):
|
|
|
109 |
time.sleep(2)
|
110 |
queue.put(prompt_with_noise)
|
111 |
output7 = proc1(queue.get())
|
112 |
+
queue.queue.clear() # Clear the queue after the output is generated
|
113 |
return output7
|
114 |
|
115 |
def send_it8(inputs, noise_level, proc1=proc1):
|
|
|
118 |
time.sleep(2)
|
119 |
queue.put(prompt_with_noise)
|
120 |
output8 = proc1(queue.get())
|
121 |
+
queue.queue.clear() # Clear the queue after the output is generated
|
122 |
return output8
|
123 |
|
124 |
|
|
|
127 |
time.sleep(2)
|
128 |
queue.put(prompt_text)
|
129 |
output = text_gen(queue.get())
|
130 |
+
queue.queue.clear() # Clear the queue after the output is generated
|
131 |
return output
|
132 |
|
133 |
|