Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,10 @@ import gradio as gr
|
|
3 |
|
4 |
# Use the base model's ID
|
5 |
base_model_id = "mistralai/Mistral-7B-v0.1"
|
|
|
6 |
|
7 |
# Load the fine-tuned model "Tonic/mistralmed"
|
8 |
-
model = AutoModelForCausalLM.from_pretrained(
|
9 |
|
10 |
tokenizer = AutoTokenizer.from_pretrained(base_model_id, trust_remote_code=True)
|
11 |
tokenizer.pad_token = tokenizer.eos_token
|
|
|
3 |
|
4 |
# Use the base model's ID
|
5 |
base_model_id = "mistralai/Mistral-7B-v0.1"
|
6 |
+
model_directory = "Tonic/mistralmed"
|
7 |
|
8 |
# Load the fine-tuned model "Tonic/mistralmed"
|
9 |
+
model = AutoModelForCausalLM.from_pretrained(model_directory, token="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")
|
10 |
|
11 |
tokenizer = AutoTokenizer.from_pretrained(base_model_id, trust_remote_code=True)
|
12 |
tokenizer.pad_token = tokenizer.eos_token
|