Spaces:
Runtime error
Runtime error
Commit
·
12ea1ed
1
Parent(s):
c928ad3
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 3 |
|
| 4 |
# Specify the directory containing the model and tokenizer
|
| 5 |
model_name = "gpt4all" # Make sure this matches the actual model directory
|
| 6 |
-
model_path = f"./
|
| 7 |
|
| 8 |
# Initialize the GPT-4 model and tokenizer
|
| 9 |
model = AutoModelForCausalLM.from_pretrained(model_path)
|
|
|
|
| 3 |
|
| 4 |
# Specify the directory containing the model and tokenizer
|
| 5 |
model_name = "gpt4all" # Make sure this matches the actual model directory
|
| 6 |
+
model_path = f"./" # Path to the model directory
|
| 7 |
|
| 8 |
# Initialize the GPT-4 model and tokenizer
|
| 9 |
model = AutoModelForCausalLM.from_pretrained(model_path)
|