Fix URL
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ def get_text(specification: str, version: str):
|
|
119 |
|
120 |
def get_latest_version(spec: str) -> str:
|
121 |
try:
|
122 |
-
req = requests.post("https://organizedprogrammers-3gppdocfinder/find", headers={"Accept": "application/json"}, json=json.dumps({"doc_id": spec}))
|
123 |
except Exception as e:
|
124 |
raise HTTPException(500, f"An error has occured while getting latest version: {e}")
|
125 |
if req.status_code == 200:
|
|
|
119 |
|
120 |
def get_latest_version(spec: str) -> str:
|
121 |
try:
|
122 |
+
req = requests.post("https://organizedprogrammers-3gppdocfinder.hf.space/find", headers={"Accept": "application/json"}, json=json.dumps({"doc_id": spec}))
|
123 |
except Exception as e:
|
124 |
raise HTTPException(500, f"An error has occured while getting latest version: {e}")
|
125 |
if req.status_code == 200:
|