Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import AutoModelForCausalLM
|
3 |
|
4 |
# Load the Llama-2-7b-chat model
|
5 |
-
model = AutoModelForCausalLM.from_pretrained("google/
|
6 |
|
7 |
# Define a function to generate text using the model
|
8 |
def generate_text(prompt):
|
|
|
2 |
from transformers import AutoModelForCausalLM
|
3 |
|
4 |
# Load the Llama-2-7b-chat model
|
5 |
+
model = AutoModelForCausalLM.from_pretrained("google/llama-2-7b-chat")
|
6 |
|
7 |
# Define a function to generate text using the model
|
8 |
def generate_text(prompt):
|