Pavankumar0619 commited on
Commit
a48e945
1 Parent(s): 66f8842

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
2
+
3
+ model_name = "intfloat/e5-mistral-7b-instruct" # Use the correct identifier for your model
4
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
5
+ model = AutoModelForSequenceClassification.from_pretrained(model_name)
6
+
7
+ # Now, you can use the 'tokenizer' and 'model' for your NLP tasks