Spaces:
Running
Running
raushanrajcareer
commited on
Commit
•
a55f0c9
1
Parent(s):
4cf093f
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
from datasets import Dataset
|
2 |
from transformers import AutoTokenizer, AutoModelForCausalLM, TrainingArguments, Trainer
|
3 |
from datafile import QL, resume_data_dict
|
|
|
|
|
4 |
|
5 |
# Load your custom data
|
6 |
|
@@ -55,6 +57,11 @@ trainer = Trainer(
|
|
55 |
# Train the model
|
56 |
trainer.train()
|
57 |
|
|
|
|
|
|
|
|
|
|
|
58 |
st.title("Resume Chatbot")
|
59 |
|
60 |
if 'history' not in st.session_state:
|
|
|
1 |
from datasets import Dataset
|
2 |
from transformers import AutoTokenizer, AutoModelForCausalLM, TrainingArguments, Trainer
|
3 |
from datafile import QL, resume_data_dict
|
4 |
+
import streamlit as st
|
5 |
+
|
6 |
|
7 |
# Load your custom data
|
8 |
|
|
|
57 |
# Train the model
|
58 |
trainer.train()
|
59 |
|
60 |
+
model_name = "./resume_bot" # Path to your fine-tuned model
|
61 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
62 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
63 |
+
|
64 |
+
|
65 |
st.title("Resume Chatbot")
|
66 |
|
67 |
if 'history' not in st.session_state:
|