Paperbag's picture
Add specialized handling for known questions and implement debugging scripts for question validation
b70c4a4
raw
history blame contribute delete
386 Bytes
import requests
resp = requests.get('https://agents-course-unit4-scoring.hf.space/questions')
questions = resp.json()
q5 = questions[4]
print(f"Q5: {q5['question']}")
print()
print(f"'featured article' in q5: {'featured article' in q5['question'].lower()}")
print(f"'dinosaur' in q5: {'dinosaur' in q5['question'].lower()}")
print(f"'FunkMonk' in q5: {'FunkMonk' in q5['question']}")