Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 4 |
|
| 5 |
# Path to local model in the same repo (e.g., "Mixtral-8x7B-Instruct-v0.1" folder uploaded to Space)
|
| 6 |
-
MODEL_DIR = "
|
| 7 |
|
| 8 |
# Load tokenizer and model
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_DIR, trust_remote_code=True)
|
|
|
|
| 3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 4 |
|
| 5 |
# Path to local model in the same repo (e.g., "Mixtral-8x7B-Instruct-v0.1" folder uploaded to Space)
|
| 6 |
+
MODEL_DIR = "Mixtral-8x7B-Instruct-v0.1"
|
| 7 |
|
| 8 |
# Load tokenizer and model
|
| 9 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_DIR, trust_remote_code=True)
|