Ahmed235 commited on
Commit
1a023c5
·
verified ·
1 Parent(s): c4d5545

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -11,9 +11,6 @@ model = gr.load("models/Ahmed235/roberta_classification")
11
  # Tokenizer can be loaded using transformers directly
12
  tokenizer = AutoTokenizer.from_pretrained("Ahmed235/roberta_classification")
13
 
14
- device = torch.device("cpu")
15
- model = model.to(device) # Move the model to the CPU
16
-
17
  def extract_text_from_pptx(file_path):
18
  presentation = Presentation(file_path)
19
  text = []
 
11
  # Tokenizer can be loaded using transformers directly
12
  tokenizer = AutoTokenizer.from_pretrained("Ahmed235/roberta_classification")
13
 
 
 
 
14
  def extract_text_from_pptx(file_path):
15
  presentation = Presentation(file_path)
16
  text = []