Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def format_puzzle_for_deepseek(grid):
|
|
| 77 |
return formatted_grid, variables
|
| 78 |
|
| 79 |
def solve_with_deepseek(formatted_grid, variables):
|
| 80 |
-
"""Sends the formatted puzzle to DeepSeek-
|
| 81 |
puzzle_text = "\n".join(["\t".join(row) for row in formatted_grid])
|
| 82 |
prompt = (
|
| 83 |
"You are an AI specialized in solving magic square puzzles. Analyze the following grid, where missing values are already "
|
|
@@ -93,7 +93,7 @@ def solve_with_deepseek(formatted_grid, variables):
|
|
| 93 |
)
|
| 94 |
|
| 95 |
data = {
|
| 96 |
-
"model": "deepseek-
|
| 97 |
"messages": [{"role": "user", "content": prompt}],
|
| 98 |
"temperature": 0,
|
| 99 |
"max_tokens": 2000
|
|
|
|
| 77 |
return formatted_grid, variables
|
| 78 |
|
| 79 |
def solve_with_deepseek(formatted_grid, variables):
|
| 80 |
+
"""Sends the formatted puzzle to DeepSeek-Reasoner for step-by-step solving."""
|
| 81 |
puzzle_text = "\n".join(["\t".join(row) for row in formatted_grid])
|
| 82 |
prompt = (
|
| 83 |
"You are an AI specialized in solving magic square puzzles. Analyze the following grid, where missing values are already "
|
|
|
|
| 93 |
)
|
| 94 |
|
| 95 |
data = {
|
| 96 |
+
"model": "deepseek-reasoner",
|
| 97 |
"messages": [{"role": "user", "content": prompt}],
|
| 98 |
"temperature": 0,
|
| 99 |
"max_tokens": 2000
|