Kangarroar commited on
Commit
b8176f1
1 Parent(s): 1b2527a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -13,4 +13,13 @@ title = col2.text_input("Key", value="0")
13
  title2 = col2.text_input("Speedup", value="20")
14
  title3 = col2.text_input("Gender Flag", value="1.00", help='Default is 1.0, it works by decimals, setting it at 1.05 will make your render sound more female-ish, setting it to 0.95 will make it sound more masculine, for example.')
15
  password = col2.text_input("Enter password")
16
- gt_mel = col2.checkbox('Use Mel as Base', value=False, help='gt mel: Enabling this will use the input audio as a base and will unlock a new parameter, do not use this if you dont know what it does.')
 
 
 
 
 
 
 
 
 
 
13
  title2 = col2.text_input("Speedup", value="20")
14
  title3 = col2.text_input("Gender Flag", value="1.00", help='Default is 1.0, it works by decimals, setting it at 1.05 will make your render sound more female-ish, setting it to 0.95 will make it sound more masculine, for example.')
15
  password = col2.text_input("Enter password")
16
+ # Create checkbox for using Mel as Base
17
+ use_mel_as_base = col2.checkbox('Use Mel as Base', value=False, help='gt mel: Enabling this will use the input audio as a base and will unlock a new parameter, do not use this if you dont know what it does.')
18
+
19
+ # Show "Noise Step" input parameter when checkbox is checked
20
+ if use_mel_as_base:
21
+ noise_step = col2.number_input('Noise Step', value=0.01, step=0.01)
22
+ else:
23
+ noise_step = None
24
+
25
+ # Rest of the code