Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import streamlit as st
|
2 |
-
from transformers import
|
3 |
|
4 |
-
model_repo_path = 'nxmwxm/
|
|
|
5 |
|
6 |
# Load the tokenizer and model
|
7 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
8 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_repo_path)
|
9 |
|
10 |
# Load the pipeline with your model and tokenizer
|
|
|
1 |
import streamlit as st
|
2 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
|
3 |
|
4 |
+
model_repo_path = 'nxmwxm/answer_generator'
|
5 |
+
tokenizer_path = 'nxmwxm/answer_generator'
|
6 |
|
7 |
# Load the tokenizer and model
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained(tokenizer_path)
|
9 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_repo_path)
|
10 |
|
11 |
# Load the pipeline with your model and tokenizer
|