Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -229,6 +229,7 @@ async def run_hackrx(req: RunRequest):
|
|
| 229 |
|
| 230 |
# for setting the secret-token in realtime
|
| 231 |
if "get-secret-token" in lower_url:
|
|
|
|
| 232 |
store_secret(doc_url)
|
| 233 |
answers = []
|
| 234 |
return JSONResponse({"answers": answers}, status_code=200)
|
|
@@ -236,6 +237,7 @@ async def run_hackrx(req: RunRequest):
|
|
| 236 |
# for flight problem (trying to bring Sachin ji back to the real world ... he should not have slept!!! because now we are not able to sleep )
|
| 237 |
|
| 238 |
elif "FinalRound4SubmissionPDF.pdf" in doc_url:
|
|
|
|
| 239 |
try:
|
| 240 |
city_url = "https://register.hackrx.in/submissions/myFavouriteCity"
|
| 241 |
city_response = requests.get(city_url)
|
|
|
|
| 229 |
|
| 230 |
# for setting the secret-token in realtime
|
| 231 |
if "get-secret-token" in lower_url:
|
| 232 |
+
print(doc_url)
|
| 233 |
store_secret(doc_url)
|
| 234 |
answers = []
|
| 235 |
return JSONResponse({"answers": answers}, status_code=200)
|
|
|
|
| 237 |
# for flight problem (trying to bring Sachin ji back to the real world ... he should not have slept!!! because now we are not able to sleep )
|
| 238 |
|
| 239 |
elif "FinalRound4SubmissionPDF.pdf" in doc_url:
|
| 240 |
+
print(doc_url)
|
| 241 |
try:
|
| 242 |
city_url = "https://register.hackrx.in/submissions/myFavouriteCity"
|
| 243 |
city_response = requests.get(city_url)
|