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