Tonic commited on
Commit
5189ab0
1 Parent(s): fb145a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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("Tonic/mistralmed", token="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")
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