Skip to content

Commit 88ca40d

Browse files
fix: connection
1 parent 7a74214 commit 88ca40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def evaluation_function(response, answer, params) -> Result:
3737
if len(response) != 6:
3838
raise Exception("Connection ID must be 6 characters long")
3939

40-
api_response = requests.get(f"http://20.117.225.136:8000/{api_endpoint}{response}")
40+
api_response = requests.get(f"{os.environ.get('API_CONNECTION')}/{api_endpoint}{response}")
4141
api_data = api_response.json()
4242
if api_data == params.get('correct_answer', None) or api_data == 0.0 or api_data is []:
4343
is_correct = True

0 commit comments

Comments
 (0)