Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
8a44b1b
1
Parent(s):
075f555
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,8 @@ queue = Queue()
|
|
26 |
queue_threshold = 100
|
27 |
|
28 |
def add_random_noise(prompt, noise_level=0.07):
|
|
|
|
|
29 |
# Get the percentage of characters to add as noise
|
30 |
percentage_noise = noise_level * 5
|
31 |
# Get the number of characters to add as noise
|
|
|
26 |
queue_threshold = 100
|
27 |
|
28 |
def add_random_noise(prompt, noise_level=0.07):
|
29 |
+
if noise_level == 0:
|
30 |
+
noise_level = 0.07
|
31 |
# Get the percentage of characters to add as noise
|
32 |
percentage_noise = noise_level * 5
|
33 |
# Get the number of characters to add as noise
|