Adityyaa commited on
Commit
cb77199
1 Parent(s): 13df59e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,9 +1,8 @@
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("Adityyaa/Mistral-7b_finetuned_mental_health")
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