Update app.py
Browse files
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 = []
|