ASG Models commited on
Commit
8caf90f
1 Parent(s): fe83a4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -91,7 +91,7 @@ class DataViewerApp:
91
  self.link_dataset=link
92
  df=Read_DataSet(link)
93
  v=self.settt(df)
94
- return self.get_page_data(self.current_page),len(v)
95
  def remove_hamza_from_alif_and_symbols(self,text):
96
  text = re.sub(r"[أإآ]", "ا", text)
97
  text = re.sub(r"ٱ", "ا", text)
@@ -440,7 +440,7 @@ class DataViewerApp:
440
  self.btn_convertDataset=gr.Button("Dir Output Bitch :",variant="primary")
441
  self.label_dataset=gr.Label("count:")
442
  self.btn_ClearEnglish.click(self.clearenglish,[],[self.data_table])
443
- self.but_send_dir.click(self.getdataset, [self.txt_filepath_dir],[self.data_table,self.labell])
444
  #self.but_send_dateSet_cut.click(self.splitt, [self.txt_filepath_dateSet,self.num],[self.data_table,self.labell])
445
  #self.txt_audio.Style(container=False, css=".txt_audio { direction: rtl; }")
446
  #self.but_send_dateSet.click(self.Read_DataSet, [self.txt_filepath_dateSet],[self.data_table ])
 
91
  self.link_dataset=link
92
  df=Read_DataSet(link)
93
  v=self.settt(df)
94
+ return self.get_page_data(self.current_page),len(v),self.link_dataset
95
  def remove_hamza_from_alif_and_symbols(self,text):
96
  text = re.sub(r"[أإآ]", "ا", text)
97
  text = re.sub(r"ٱ", "ا", text)
 
440
  self.btn_convertDataset=gr.Button("Dir Output Bitch :",variant="primary")
441
  self.label_dataset=gr.Label("count:")
442
  self.btn_ClearEnglish.click(self.clearenglish,[],[self.data_table])
443
+ self.but_send_dir.click(self.getdataset, [self.txt_filepath_dir],[self.data_table,self.labell,self.txt_dataset])
444
  #self.but_send_dateSet_cut.click(self.splitt, [self.txt_filepath_dateSet,self.num],[self.data_table,self.labell])
445
  #self.txt_audio.Style(container=False, css=".txt_audio { direction: rtl; }")
446
  #self.but_send_dateSet.click(self.Read_DataSet, [self.txt_filepath_dateSet],[self.data_table ])