Spaces:
Running
Running
ASG Models
commited on
Commit
•
a17dc1d
1
Parent(s):
591b550
Update app.py
Browse files
app.py
CHANGED
@@ -381,7 +381,7 @@ class DataViewerApp:
|
|
381 |
with gr.Row():
|
382 |
|
383 |
|
384 |
-
with gr.Column(scale=
|
385 |
gr.Markdown("## Data Viewer")
|
386 |
#d=self.get_page_data(self.current_page)
|
387 |
# Correct the indentation here:
|
@@ -393,16 +393,16 @@ class DataViewerApp:
|
|
393 |
|
394 |
#self.data_table1 = gr.DataFrame(headers=[ "Text","Id_spiker"])
|
395 |
with gr.Row(equal_height=False):
|
396 |
-
self.prev_button = gr.Button("
|
397 |
-
|
398 |
-
self.
|
|
|
399 |
|
400 |
with gr.Row(equal_height=False):
|
401 |
|
402 |
#inputs=gr.CheckboxGroup(["John", "Mary", "Peter", "Susan"])
|
403 |
-
self.but_cleartxt=gr.Button("clear Text",variant="primary")
|
404 |
self.btn_all_enhance=gr.Button("All enhance",size="sm",variant="primary")
|
405 |
-
self.btn_ClearEnglish=gr.Button("ClearEnglish",size="sm",variant="primary")
|
406 |
|
407 |
|
408 |
|
@@ -413,20 +413,23 @@ class DataViewerApp:
|
|
413 |
|
414 |
|
415 |
|
416 |
-
with gr.Column(scale=
|
417 |
gr.Markdown("## Row Data")
|
418 |
self.txt_audio = gr.Textbox(label="Text", interactive=True,rtl=True)
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
|
|
|
|
|
|
430 |
|
431 |
|
432 |
with gr.Row(equal_height=False,variant="heading-1"):
|
|
|
381 |
with gr.Row():
|
382 |
|
383 |
|
384 |
+
with gr.Column(scale=5):
|
385 |
gr.Markdown("## Data Viewer")
|
386 |
#d=self.get_page_data(self.current_page)
|
387 |
# Correct the indentation here:
|
|
|
393 |
|
394 |
#self.data_table1 = gr.DataFrame(headers=[ "Text","Id_spiker"])
|
395 |
with gr.Row(equal_height=False):
|
396 |
+
self.prev_button = gr.Button("<",scale=1, size="sm",min_width=30)
|
397 |
+
|
398 |
+
self.page_number = gr.Number(value=self.current_page + 1, label="Page",scale=1,min_width=100)
|
399 |
+
self.next_button = gr.Button(">",scale=1, size="sm",min_width=30)
|
400 |
|
401 |
with gr.Row(equal_height=False):
|
402 |
|
403 |
#inputs=gr.CheckboxGroup(["John", "Mary", "Peter", "Susan"])
|
404 |
+
self.but_cleartxt=gr.Button("clear Text",variant="primary",size="sm")
|
405 |
self.btn_all_enhance=gr.Button("All enhance",size="sm",variant="primary")
|
|
|
406 |
|
407 |
|
408 |
|
|
|
413 |
|
414 |
|
415 |
|
416 |
+
with gr.Column(scale=4):
|
417 |
gr.Markdown("## Row Data")
|
418 |
self.txt_audio = gr.Textbox(label="Text", interactive=True,rtl=True)
|
419 |
+
with gr.Row(equal_height=False):
|
420 |
+
self.audio_player = gr.Audio(label="Audio")
|
421 |
+
with gr.Row(equal_height=False):
|
422 |
+
self.btn_del = gr.Button("Delete ", size="sm",variant="primary",min_width=50)
|
423 |
+
self.btn_save = gr.Button("Save", size="sm",variant="primary",min_width=50)
|
424 |
+
self.totext=gr.Button("to text",size="sm" ,variant="primary",min_width=50)
|
425 |
+
|
426 |
+
# with gr.Row(equal_height=False):
|
427 |
+
|
428 |
+
|
429 |
+
with gr.Row(equal_height=False):
|
430 |
+
self.btn_newsave=gr.Button("New Save Cut",size="sm",variant="primary",min_width=50)
|
431 |
+
self.btn_enhance = gr.Button("enhance ", size="sm",variant="primary",min_width=50)
|
432 |
+
self.order= gr.Button("order ", size="sm",variant="primary",min_width=50)
|
433 |
|
434 |
|
435 |
with gr.Row(equal_height=False,variant="heading-1"):
|