Initial commit for JobMatch
Browse files
app.py
CHANGED
|
@@ -2,8 +2,8 @@ import gradio as gr
|
|
| 2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
| 3 |
|
| 4 |
# Load model and tokenizer
|
| 5 |
-
tokenizer = AutoTokenizer.from_pretrained("aaliyaan/t5-small-
|
| 6 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("aaliyaan/t5-small-
|
| 7 |
|
| 8 |
# Function to generate a response from the model and maintain chat history
|
| 9 |
def chat_with_gpt(user_input, chat_history):
|
|
@@ -152,4 +152,4 @@ def launch_gradio_interface():
|
|
| 152 |
|
| 153 |
demo.launch()
|
| 154 |
|
| 155 |
-
|
|
|
|
| 2 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
| 3 |
|
| 4 |
# Load model and tokenizer
|
| 5 |
+
tokenizer = AutoTokenizer.from_pretrained("aaliyaan/t5-small-finetuned-career")
|
| 6 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("aaliyaan/t5-small-finetuned-career")
|
| 7 |
|
| 8 |
# Function to generate a response from the model and maintain chat history
|
| 9 |
def chat_with_gpt(user_input, chat_history):
|
|
|
|
| 152 |
|
| 153 |
demo.launch()
|
| 154 |
|
| 155 |
+
launch_gradio_interface()
|