We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a74214 commit 88ca40dCopy full SHA for 88ca40d
app/evaluation.py
@@ -37,7 +37,7 @@ def evaluation_function(response, answer, params) -> Result:
37
if len(response) != 6:
38
raise Exception("Connection ID must be 6 characters long")
39
40
- api_response = requests.get(f"http://20.117.225.136:8000/{api_endpoint}{response}")
+ api_response = requests.get(f"{os.environ.get('API_CONNECTION')}/{api_endpoint}{response}")
41
api_data = api_response.json()
42
if api_data == params.get('correct_answer', None) or api_data == 0.0 or api_data is []:
43
is_correct = True
0 commit comments