Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -87,6 +87,19 @@ class DataEditor:
|
|
87 |
self.current_page < len(self.data) // 10 - 1,
|
88 |
self.current_page
|
89 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
def convert_dataframe_to_dataset(self, namedata):
|
91 |
datatable=self.finsh_data()
|
92 |
if "__index_level_0__" in datatable.columns:
|
@@ -176,9 +189,10 @@ class DataEditor:
|
|
176 |
def create_interface(self):
|
177 |
# with gr.Blocks() as demo:
|
178 |
|
179 |
-
with gr.
|
180 |
-
self.
|
181 |
-
self.
|
|
|
182 |
with gr.Row():
|
183 |
with gr.Column():
|
184 |
self.table = gr.Dataframe(value=self.datatable, headers=['text', 'audio'], interactive=True)
|
|
|
87 |
self.current_page < len(self.data) // 10 - 1,
|
88 |
self.current_page
|
89 |
)
|
90 |
+
def create_Tabs(self): # fix: method was missing
|
91 |
+
#with gr.Blocks() as interface:
|
92 |
+
with gr.Tabs():
|
93 |
+
|
94 |
+
with gr.TabItem("Dir"):
|
95 |
+
txt_filepath_dateSet=gr.Text("link DateSet")
|
96 |
+
#self.txt_text=gr.Text("Text" )
|
97 |
+
but_send_dateSet=gr.Button("Send",size="sm")
|
98 |
+
with gr.TabItem("Cut Text"):
|
99 |
+
self.txturll = gr.Textbox(placeholder="link dir", interactive=True)
|
100 |
+
self.btn_displayy = gr.Button("Load Dataset",scale=1, size="sm",variant="primary")
|
101 |
+
|
102 |
+
self.but_send_dateSet_cut=gr.Button("Send",size="sm")
|
103 |
def convert_dataframe_to_dataset(self, namedata):
|
104 |
datatable=self.finsh_data()
|
105 |
if "__index_level_0__" in datatable.columns:
|
|
|
189 |
def create_interface(self):
|
190 |
# with gr.Blocks() as demo:
|
191 |
|
192 |
+
with gr.Row():
|
193 |
+
self.create_Tabs()
|
194 |
+
#self.txturll = gr.Textbox(placeholder="link dir", interactive=True)
|
195 |
+
#self.btn_displayy = gr.Button("Load Dataset",scale=1, size="sm",variant="primary")
|
196 |
with gr.Row():
|
197 |
with gr.Column():
|
198 |
self.table = gr.Dataframe(value=self.datatable, headers=['text', 'audio'], interactive=True)
|