Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -228,9 +228,9 @@ class DataViewerApp:
|
|
| 228 |
else :
|
| 229 |
data=data[data['flag'] ==1]
|
| 230 |
return self.set1(data),len(data)
|
| 231 |
-
def process_audio(self
|
| 232 |
for i in range(len(self.sdata)):
|
| 233 |
-
x, y =
|
| 234 |
self.sdata[i]=y
|
| 235 |
return self.data
|
| 236 |
def on_select(self,evt:gr.SelectData):
|
|
@@ -247,7 +247,7 @@ class DataViewerApp:
|
|
| 247 |
return self.df
|
| 248 |
def All_enhance(self):
|
| 249 |
with ThreadPoolExecutor() as executor:
|
| 250 |
-
future = executor.submit(process_audio,
|
| 251 |
df_modified = future.result()
|
| 252 |
return df_modified
|
| 253 |
|
|
|
|
| 228 |
else :
|
| 229 |
data=data[data['flag'] ==1]
|
| 230 |
return self.set1(data),len(data)
|
| 231 |
+
def process_audio(self):
|
| 232 |
for i in range(len(self.sdata)):
|
| 233 |
+
x, y =remove_nn(self.sdata[i])
|
| 234 |
self.sdata[i]=y
|
| 235 |
return self.data
|
| 236 |
def on_select(self,evt:gr.SelectData):
|
|
|
|
| 247 |
return self.df
|
| 248 |
def All_enhance(self):
|
| 249 |
with ThreadPoolExecutor() as executor:
|
| 250 |
+
future = executor.submit(process_audio,self)
|
| 251 |
df_modified = future.result()
|
| 252 |
return df_modified
|
| 253 |
|