Format code (#644)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
5ca7736b2d
commit
549ac02698
15
gui.py
15
gui.py
@ -254,7 +254,12 @@ class GUI:
|
||||
self.launcher()
|
||||
|
||||
def load(self):
|
||||
input_devices, output_devices, input_devices_indices, output_devices_indices = self.get_devices()
|
||||
(
|
||||
input_devices,
|
||||
output_devices,
|
||||
input_devices_indices,
|
||||
output_devices_indices,
|
||||
) = self.get_devices()
|
||||
try:
|
||||
with open("values1.json", "r") as j:
|
||||
data = json.load(j)
|
||||
@ -263,8 +268,12 @@ class GUI:
|
||||
data = {
|
||||
"pth_path": "",
|
||||
"index_path": "",
|
||||
"sg_input_device": input_devices[input_devices_indices.index(sd.default.device[0])],
|
||||
"sg_output_device": output_devices[output_devices_indices.index(sd.default.device[1])],
|
||||
"sg_input_device": input_devices[
|
||||
input_devices_indices.index(sd.default.device[0])
|
||||
],
|
||||
"sg_output_device": output_devices[
|
||||
output_devices_indices.index(sd.default.device[1])
|
||||
],
|
||||
"threhold": "-45",
|
||||
"pitch": "0",
|
||||
"index_rate": "0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user