Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
|
5 |
import streamlit as st
|
6 |
|
7 |
# Update with your local file paths
|
8 |
-
|
|
|
9 |
|
10 |
# Load the fine-tuned GPT-2 model and tokenizer
|
11 |
model = GPT2LMHeadModel.from_pretrained(model_directory)
|
|
|
5 |
import streamlit as st
|
6 |
|
7 |
# Update with your local file paths
|
8 |
+
|
9 |
+
model_directory = 'C:/Users/pc/Desktop/Semester 7/NLP/Project/MyModels'
|
10 |
|
11 |
# Load the fine-tuned GPT-2 model and tokenizer
|
12 |
model = GPT2LMHeadModel.from_pretrained(model_directory)
|