Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
pip install PyPDF2
|
2 |
|
3 |
|
4 |
import streamlit as st
|
@@ -6,8 +6,8 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
6 |
import torch
|
7 |
|
8 |
# Load the model and tokenizer
|
9 |
-
tokenizer = AutoTokenizer.from_pretrained("your_huggingface_model_path")
|
10 |
-
model = AutoModelForSequenceClassification.from_pretrained("your_huggingface_model_path")
|
11 |
|
12 |
# Define genre labels
|
13 |
genre_labels = ["mystery", "sci-fi", "fantasy", "romance", "thriller", "horror", "drama", "comedy",
|
|
|
1 |
+
#pip install PyPDF2
|
2 |
|
3 |
|
4 |
import streamlit as st
|
|
|
6 |
import torch
|
7 |
|
8 |
# Load the model and tokenizer
|
9 |
+
#tokenizer = AutoTokenizer.from_pretrained("your_huggingface_model_path")
|
10 |
+
#model = AutoModelForSequenceClassification.from_pretrained("your_huggingface_model_path")
|
11 |
|
12 |
# Define genre labels
|
13 |
genre_labels = ["mystery", "sci-fi", "fantasy", "romance", "thriller", "horror", "drama", "comedy",
|