Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import gradio as gr
|
|
3 |
# Load model directly
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
7 |
-
model = AutoModelForCausalLM.from_pretrained("
|
8 |
|
9 |
def eval_text(text):
|
10 |
# Encode the input text
|
|
|
3 |
# Load model directly
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("NousResearch/Llama-2-7b-chat-hf") #meta-llama/Llama-2-7b-hf
|
7 |
+
model = AutoModelForCausalLM.from_pretrained("NousResearch/Llama-2-7b-chat-hf")
|
8 |
|
9 |
def eval_text(text):
|
10 |
# Encode the input text
|