eagle0504 commited on
Commit
25392ae
·
verified ·
1 Parent(s): 71119bd

Update helper.py

Browse files
Files changed (1) hide show
  1. helper.py +1 -1
helper.py CHANGED
@@ -33,7 +33,7 @@ def query_deepseek(prompt: str, max_gen_len: int, temperature: float, top_p: flo
33
  full_response = response.json()
34
 
35
  # Extract the output text from the model response
36
- output_text = full_response.get("model_response", {}).get("generation", "No output found.")
37
  return output_text
38
  else:
39
  return f"Error {response.status_code}: {response.text}"
 
33
  full_response = response.json()
34
 
35
  # Extract the output text from the model response
36
+ output_text = full_response.get("model_response").get("choices")[0].get("text")
37
  return output_text
38
  else:
39
  return f"Error {response.status_code}: {response.text}"