phenomenon1981 commited on
Commit
6119156
1 Parent(s): 3b31ef4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -29,6 +29,8 @@ queue = Queue()
29
  queue_threshold = 800
30
 
31
  def add_random_noise(prompt, noise_level=0.07):
 
 
32
  # Get the percentage of characters to add as noise
33
  percentage_noise = noise_level * 5
34
  # Get the number of characters to add as noise
 
29
  queue_threshold = 800
30
 
31
  def add_random_noise(prompt, noise_level=0.07):
32
+ if noise_level == 0:
33
+ noise_level = 0.07
34
  # Get the percentage of characters to add as noise
35
  percentage_noise = noise_level * 5
36
  # Get the number of characters to add as noise