Spaces:
Sleeping
Sleeping
Update helper.py
Browse files
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"
|
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}"
|