phenomenon1981 commited on
Commit
46977ce
1 Parent(s): 720a3f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -16
app.py CHANGED
@@ -40,60 +40,45 @@ def add_random_noise(prompt, noise_level=0.07):
40
 
41
  def send_it1(inputs, noise_level, proc1=proc1):
42
  prompt_with_noise = add_random_noise(inputs, noise_level)
43
- while queue.qsize() >= queue_threshold:
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):
49
  prompt_with_noise = add_random_noise(inputs, noise_level)
50
- while queue.qsize() >= queue_threshold:
51
- queue.put(prompt_with_noise)
52
  output2 = proc1(prompt_with_noise)
53
  return output2
54
 
55
  def send_it3(inputs, noise_level, proc1=proc1):
56
  prompt_with_noise = add_random_noise(inputs, noise_level)
57
- while queue.qsize() >= queue_threshold:
58
- queue.put(prompt_with_noise)
59
  output3 = proc1(prompt_with_noise)
60
  return output3
61
 
62
  def send_it4(inputs, noise_level, proc1=proc1):
63
  prompt_with_noise = add_random_noise(inputs, noise_level)
64
- while queue.qsize() >= queue_threshold:
65
- queue.put(prompt_with_noise)
66
  output4 = proc1(prompt_with_noise)
67
  return output4
68
 
69
  def send_it5(inputs, noise_level, proc1=proc1):
70
  prompt_with_noise = add_random_noise(inputs, noise_level)
71
- while queue.qsize() >= queue_threshold:
72
- queue.put(prompt_with_noise)
73
  output5 = proc1(prompt_with_noise)
74
  return output5
75
 
76
  def send_it6(inputs, noise_level, proc1=proc1):
77
  prompt_with_noise = add_random_noise(inputs, noise_level)
78
- while queue.qsize() >= queue_threshold:
79
- queue.put(prompt_with_noise)
80
  output6 = proc1(prompt_with_noise)
81
  return output6
82
 
83
  def send_it7(inputs, noise_level, proc1=proc1):
84
  prompt_with_noise = add_random_noise(inputs, noise_level)
85
- while queue.qsize() >= queue_threshold:
86
- queue.put(prompt_with_noise)
87
  output7 = proc1(prompt_with_noise)
88
  return output7
89
 
90
  def send_it8(inputs, noise_level, proc1=proc1):
91
  prompt_with_noise = add_random_noise(inputs, noise_level)
92
- while queue.qsize() >= queue_threshold:
93
- queue.put(prompt_with_noise)
94
  output8 = proc1(prompt_with_noise)
95
  return output8
96
 
 
97
  def get_prompts(prompt_text):
98
  return text_gen(prompt_text)
99
 
 
40
 
41
  def send_it1(inputs, noise_level, proc1=proc1):
42
  prompt_with_noise = add_random_noise(inputs, noise_level)
 
 
43
  output1 = proc1(prompt_with_noise)
44
  return output1
45
 
46
  def send_it2(inputs, noise_level, proc1=proc1):
47
  prompt_with_noise = add_random_noise(inputs, noise_level)
 
 
48
  output2 = proc1(prompt_with_noise)
49
  return output2
50
 
51
  def send_it3(inputs, noise_level, proc1=proc1):
52
  prompt_with_noise = add_random_noise(inputs, noise_level)
 
 
53
  output3 = proc1(prompt_with_noise)
54
  return output3
55
 
56
  def send_it4(inputs, noise_level, proc1=proc1):
57
  prompt_with_noise = add_random_noise(inputs, noise_level)
 
 
58
  output4 = proc1(prompt_with_noise)
59
  return output4
60
 
61
  def send_it5(inputs, noise_level, proc1=proc1):
62
  prompt_with_noise = add_random_noise(inputs, noise_level)
 
 
63
  output5 = proc1(prompt_with_noise)
64
  return output5
65
 
66
  def send_it6(inputs, noise_level, proc1=proc1):
67
  prompt_with_noise = add_random_noise(inputs, noise_level)
 
 
68
  output6 = proc1(prompt_with_noise)
69
  return output6
70
 
71
  def send_it7(inputs, noise_level, proc1=proc1):
72
  prompt_with_noise = add_random_noise(inputs, noise_level)
 
 
73
  output7 = proc1(prompt_with_noise)
74
  return output7
75
 
76
  def send_it8(inputs, noise_level, proc1=proc1):
77
  prompt_with_noise = add_random_noise(inputs, noise_level)
 
 
78
  output8 = proc1(prompt_with_noise)
79
  return output8
80
 
81
+
82
  def get_prompts(prompt_text):
83
  return text_gen(prompt_text)
84