Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ tokenizer.padding_side = 'left'
|
|
14 |
|
15 |
# Load the PEFT model
|
16 |
peft_config = PeftConfig.from_pretrained("Tonic/mistralmed", token="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")
|
17 |
-
|
18 |
peft_model = PeftModel.from_pretrained(base_model, "Tonic/mistralmed", token="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")
|
19 |
|
20 |
class ChatBot:
|
|
|
14 |
|
15 |
# Load the PEFT model
|
16 |
peft_config = PeftConfig.from_pretrained("Tonic/mistralmed", token="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")
|
17 |
+
peft_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1")
|
18 |
peft_model = PeftModel.from_pretrained(base_model, "Tonic/mistralmed", token="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")
|
19 |
|
20 |
class ChatBot:
|