Adityyaa commited on
Commit
3aa9bbb
1 Parent(s): a774c43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,9 +1,10 @@
1
  import streamlit as st
2
- from langchain.llms import CTransformers, CTokenizer
 
3
 
4
  # Load the model and tokenizer separately
5
  model = CTransformers.from_pretrained("Adityyaa/Mistral-7b_finetuned_mental_health")
6
- tokenizer = CTokenizer.from_pretrained("Adityyaa/Mistral-7b_finetuned_mental_health")
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():