Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ from flask import Flask, render_template, request, jsonify
|
|
| 2 |
from transformers import pipeline, LlamaTokenizer, LlamaForCausalLM
|
| 3 |
|
| 4 |
# Load the LLaMA model and tokenizer
|
| 5 |
-
model_name = "
|
| 6 |
tokenizer = LlamaTokenizer.from_pretrained(model_name)
|
| 7 |
model = LlamaForCausalLM.from_pretrained(model_name)
|
| 8 |
|
|
|
|
| 2 |
from transformers import pipeline, LlamaTokenizer, LlamaForCausalLM
|
| 3 |
|
| 4 |
# Load the LLaMA model and tokenizer
|
| 5 |
+
model_name = "NousResearch/Llama-2-7b-chat-hf" # Replace with the specific LLaMA model you want to use
|
| 6 |
tokenizer = LlamaTokenizer.from_pretrained(model_name)
|
| 7 |
model = LlamaForCausalLM.from_pretrained(model_name)
|
| 8 |
|