om4r932 commited on
Commit
b094207
·
1 Parent(s): 744263a

Fix 422 error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.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:
 
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"}, data={"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: