lakshraina2 commited on
Commit
38ef4f9
·
verified ·
1 Parent(s): 381aa4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def solve(problem_text):
18
  if not problem_text or len(problem_text) < 10:
19
  return "// Error: Problem text too short."
20
 
21
- prompt = f"Problem:\n{problem_text}\n\nThink step-by-step about the edge cases, time complexity, and logic required to solve this problem. After your explanation, provide the optimal Python3 code inside a ```python code block.\n"
22
  inputs = tokenizer(prompt, return_tensors="pt")
23
 
24
  with torch.no_grad():
 
18
  if not problem_text or len(problem_text) < 10:
19
  return "// Error: Problem text too short."
20
 
21
+ prompt = f"Problem:\n{problem_text}\n\nOptimal and correct Python3 code solution:\n"
22
  inputs = tokenizer(prompt, return_tensors="pt")
23
 
24
  with torch.no_grad():