Spaces:
Build error
Build error
llmModeluser
commited on
Commit
•
1e259d8
1
Parent(s):
200d90e
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
|
|
5 |
model_name = "llmModeluser/therapy_trained_model"
|
6 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
7 |
|
8 |
-
# Load the tokenizer directly from the model
|
9 |
tokenizer = AutoTokenizer.from_pretrained("llmModeluser/therapy_trained_model")
|
10 |
|
11 |
# Create the text generation pipeline
|
|
|
5 |
model_name = "llmModeluser/therapy_trained_model"
|
6 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
7 |
|
8 |
+
# Load the tokenizer directly from the Hugging Face model path
|
9 |
tokenizer = AutoTokenizer.from_pretrained("llmModeluser/therapy_trained_model")
|
10 |
|
11 |
# Create the text generation pipeline
|