Jan90 commited on
Commit
7398b8e
·
verified ·
1 Parent(s): 3fbce7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -13
app.py CHANGED
@@ -27,19 +27,6 @@ classifier = TextClassificationPipeline(model=new_model, tokenizer=new_tokenizer
27
 
28
  label_mapping = {1: '1/5', 2: '2/5', 3: '3/5', 4: '4/5', 5: '5/5'}
29
 
30
- # Function to parse Excel file
31
- def parse_xl(file_path):
32
- cells = []
33
-
34
- workbook = load_workbook(filename=file_path)
35
- for sheet in workbook.worksheets:
36
- for row in sheet.iter_rows():
37
- for cell in row:
38
- if cell.value != None:
39
- cells.append(cell.value)
40
-
41
- return cells
42
-
43
  # Function to display and filter the Excel workbook
44
  def filter_xl(file, keywords):
45
  # Load the workbook and convert it to a DataFrame
 
27
 
28
  label_mapping = {1: '1/5', 2: '2/5', 3: '3/5', 4: '4/5', 5: '5/5'}
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  # Function to display and filter the Excel workbook
31
  def filter_xl(file, keywords):
32
  # Load the workbook and convert it to a DataFrame