Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
import streamlit as st
|
2 |
-
from
|
3 |
-
from transformers import AutoTokenizer
|
4 |
|
5 |
-
# Load the model and tokenizer separately
|
6 |
-
model =
|
7 |
tokenizer = AutoTokenizer.from_pretrained("Adityyaa/Mistral-7b_finetuned_mental_health")
|
8 |
|
9 |
# Define the Streamlit app
|
|
|
1 |
import streamlit as st
|
2 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
3 |
|
4 |
+
# Load the pretrained model and tokenizer separately
|
5 |
+
model = AutoModelForCausalLM.from_pretrained("Adityyaa/Mistral-7b_finetuned_mental_health")
|
6 |
tokenizer = AutoTokenizer.from_pretrained("Adityyaa/Mistral-7b_finetuned_mental_health")
|
7 |
|
8 |
# Define the Streamlit app
|