Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
3 |
|
4 |
# Load model and tokenizer from Hugging Face
|
5 |
model_name = "iqrabatool/finetuned_LLaMA"
|
6 |
-
model = AutoModelForCausalLM.from_pretrained(model_name, token=
|
7 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name, token=
|
8 |
|
9 |
def respond(message, system_message, max_tokens, temperature, top_p):
|
10 |
# Generate response
|
|
|
3 |
|
4 |
# Load model and tokenizer from Hugging Face
|
5 |
model_name = "iqrabatool/finetuned_LLaMA"
|
6 |
+
model = AutoModelForCausalLM.from_pretrained(model_name, token=os.environ.get('HF_TOKEN'))
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, token=os.environ.get('HF_TOKEN'))
|
8 |
|
9 |
def respond(message, system_message, max_tokens, temperature, top_p):
|
10 |
# Generate response
|