Spaces:
Build error
Build error
Commit ·
74c7e34
1
Parent(s): af05087
testing
Browse files
app.py
CHANGED
|
@@ -251,6 +251,8 @@ async def solve_challenge(request: ChallengeRequest):
|
|
| 251 |
# Extract from title or visible text
|
| 252 |
if page_content.get('title'):
|
| 253 |
answer = page_content['title']
|
|
|
|
|
|
|
| 254 |
|
| 255 |
answers.append(answer.strip() if answer else "Challenge information not found")
|
| 256 |
logger.info(f"Answer found: {answers[-1]}")
|
|
|
|
| 251 |
# Extract from title or visible text
|
| 252 |
if page_content.get('title'):
|
| 253 |
answer = page_content['title']
|
| 254 |
+
|
| 255 |
+
print("Answers: ", answer)
|
| 256 |
|
| 257 |
answers.append(answer.strip() if answer else "Challenge information not found")
|
| 258 |
logger.info(f"Answer found: {answers[-1]}")
|
tester.py
CHANGED
|
@@ -7,7 +7,7 @@ def test_hackrx_api():
|
|
| 7 |
# API endpoint
|
| 8 |
# url = "http://localhost:8000/challenge"
|
| 9 |
url = "http://localhost:8000/challenge"
|
| 10 |
-
|
| 11 |
# Test data (sample from problem statement)
|
| 12 |
test_data = {
|
| 13 |
"url": "https://register.hackrx.in/showdown/startChallenge/dGVzdF90b2tlbl9leGFtcGxl",
|
|
|
|
| 7 |
# API endpoint
|
| 8 |
# url = "http://localhost:8000/challenge"
|
| 9 |
url = "http://localhost:8000/challenge"
|
| 10 |
+
url = "https://Rahul-Samedavar-hackrx.hf.space"
|
| 11 |
# Test data (sample from problem statement)
|
| 12 |
test_data = {
|
| 13 |
"url": "https://register.hackrx.in/showdown/startChallenge/dGVzdF90b2tlbl9leGFtcGxl",
|