Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
c4d2e5a
1
Parent(s):
49634cd
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,6 @@ def send_it1(inputs, noise_level, proc1=proc1):
|
|
43 |
output1 = proc1(prompt_with_noise)
|
44 |
queue_length_counter += 1
|
45 |
return output1
|
46 |
-
time.sleep()
|
47 |
|
48 |
def send_it2(inputs, noise_level, proc1=proc1):
|
49 |
global queue_length_counter
|
@@ -55,7 +54,6 @@ def send_it2(inputs, noise_level, proc1=proc1):
|
|
55 |
output2 = proc1(prompt_with_noise)
|
56 |
queue_length_counter += 1
|
57 |
return output2
|
58 |
-
time.sleep(2)
|
59 |
|
60 |
def send_it3(inputs, noise_level, proc1=proc1):
|
61 |
global queue_length_counter
|
@@ -67,7 +65,6 @@ def send_it3(inputs, noise_level, proc1=proc1):
|
|
67 |
output3 = proc1(prompt_with_noise)
|
68 |
queue_length_counter += 1
|
69 |
return output3
|
70 |
-
time.sleep()
|
71 |
|
72 |
def send_it4(inputs, noise_level, proc1=proc1):
|
73 |
global queue_length_counter
|
@@ -79,7 +76,6 @@ def send_it4(inputs, noise_level, proc1=proc1):
|
|
79 |
output4 = proc1(prompt_with_noise)
|
80 |
queue_length_counter += 1
|
81 |
return output4
|
82 |
-
time.sleep(2)
|
83 |
|
84 |
def send_it5(inputs, noise_level, proc1=proc1):
|
85 |
global queue_length_counter
|
@@ -91,7 +87,6 @@ def send_it5(inputs, noise_level, proc1=proc1):
|
|
91 |
output5 = proc1(prompt_with_noise)
|
92 |
queue_length_counter += 1
|
93 |
return output5
|
94 |
-
time.sleep()
|
95 |
|
96 |
def send_it6(inputs, noise_level, proc1=proc1):
|
97 |
global queue_length_counter
|
@@ -103,7 +98,6 @@ def send_it6(inputs, noise_level, proc1=proc1):
|
|
103 |
output6 = proc1(prompt_with_noise)
|
104 |
queue_length_counter += 1
|
105 |
return output6
|
106 |
-
time.sleep(2)
|
107 |
|
108 |
def send_it7(inputs, noise_level, proc1=proc1):
|
109 |
global queue_length_counter
|
@@ -115,7 +109,6 @@ def send_it7(inputs, noise_level, proc1=proc1):
|
|
115 |
output7 = proc1(prompt_with_noise)
|
116 |
queue_length_counter += 1
|
117 |
return output7
|
118 |
-
time.sleep()
|
119 |
|
120 |
def send_it8(inputs, noise_level, proc1=proc1):
|
121 |
global queue_length_counter
|
@@ -127,7 +120,6 @@ def send_it8(inputs, noise_level, proc1=proc1):
|
|
127 |
output8 = proc1(prompt_with_noise)
|
128 |
queue_length_counter += 1
|
129 |
return output8
|
130 |
-
time.sleep(2)
|
131 |
|
132 |
|
133 |
|
@@ -140,7 +132,6 @@ def get_prompts(prompt_text):
|
|
140 |
output = text_gen(prompt_text)
|
141 |
queue_length_counter += 1
|
142 |
return output
|
143 |
-
time.sleep()
|
144 |
|
145 |
|
146 |
with gr.Blocks() as myface:
|
|
|
43 |
output1 = proc1(prompt_with_noise)
|
44 |
queue_length_counter += 1
|
45 |
return output1
|
|
|
46 |
|
47 |
def send_it2(inputs, noise_level, proc1=proc1):
|
48 |
global queue_length_counter
|
|
|
54 |
output2 = proc1(prompt_with_noise)
|
55 |
queue_length_counter += 1
|
56 |
return output2
|
|
|
57 |
|
58 |
def send_it3(inputs, noise_level, proc1=proc1):
|
59 |
global queue_length_counter
|
|
|
65 |
output3 = proc1(prompt_with_noise)
|
66 |
queue_length_counter += 1
|
67 |
return output3
|
|
|
68 |
|
69 |
def send_it4(inputs, noise_level, proc1=proc1):
|
70 |
global queue_length_counter
|
|
|
76 |
output4 = proc1(prompt_with_noise)
|
77 |
queue_length_counter += 1
|
78 |
return output4
|
|
|
79 |
|
80 |
def send_it5(inputs, noise_level, proc1=proc1):
|
81 |
global queue_length_counter
|
|
|
87 |
output5 = proc1(prompt_with_noise)
|
88 |
queue_length_counter += 1
|
89 |
return output5
|
|
|
90 |
|
91 |
def send_it6(inputs, noise_level, proc1=proc1):
|
92 |
global queue_length_counter
|
|
|
98 |
output6 = proc1(prompt_with_noise)
|
99 |
queue_length_counter += 1
|
100 |
return output6
|
|
|
101 |
|
102 |
def send_it7(inputs, noise_level, proc1=proc1):
|
103 |
global queue_length_counter
|
|
|
109 |
output7 = proc1(prompt_with_noise)
|
110 |
queue_length_counter += 1
|
111 |
return output7
|
|
|
112 |
|
113 |
def send_it8(inputs, noise_level, proc1=proc1):
|
114 |
global queue_length_counter
|
|
|
120 |
output8 = proc1(prompt_with_noise)
|
121 |
queue_length_counter += 1
|
122 |
return output8
|
|
|
123 |
|
124 |
|
125 |
|
|
|
132 |
output = text_gen(prompt_text)
|
133 |
queue_length_counter += 1
|
134 |
return output
|
|
|
135 |
|
136 |
|
137 |
with gr.Blocks() as myface:
|