atifsial123 commited on
Commit
ac2c4c4
·
verified ·
1 Parent(s): 03a4c5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -1,20 +1,4 @@
1
- # Upload your dataset
2
- uploaded = files.upload()
3
 
4
- # Load the dataset
5
- filename = next(iter(uploaded)) # Automatically get the first uploaded file's name
6
- df = pd.read_excel(filename) # Read the uploaded Excel file
7
-
8
- # Display the columns in the uploaded DataFrame to help identify correct names
9
- print("Columns in the dataset:", df.columns.tolist())
10
-
11
- import os
12
- os.system('pip install transformers')
13
- # Import the necessary libraries
14
- import os
15
- os.system('pip install torch')
16
- # Import the necessary libraries
17
- # Import the necessary libraries
18
  # Import the necessary libraries
19
  from transformers import AutoModel, AutoTokenizer
20
  import torch
@@ -57,5 +41,3 @@ def build_interface():
57
  if __name__ == "__main__":
58
  iface = build_interface()
59
  iface.launch()
60
-
61
-
 
 
 
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  # Import the necessary libraries
3
  from transformers import AutoModel, AutoTokenizer
4
  import torch
 
41
  if __name__ == "__main__":
42
  iface = build_interface()
43
  iface.launch()