sdgzero2ai commited on
Commit
5bcb51b
·
verified ·
1 Parent(s): 0de480a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import torch
5
  # Load the DeepSeek R1 model and tokenizer
6
  model_name = "deepseek-ai/deepseek-r1"
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
- model = AutoModelForCausalLM.from_pretrained(model_name)
9
 
10
  def chat_with_deepseek(user_input, history):
11
  # Combine the history with the new user input
 
5
  # Load the DeepSeek R1 model and tokenizer
6
  model_name = "deepseek-ai/deepseek-r1"
7
  tokenizer = AutoTokenizer.from_pretrained(model_name)
8
+ model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True) # Add trust_remote_code=True
9
 
10
  def chat_with_deepseek(user_input, history):
11
  # Combine the history with the new user input