davanstrien HF staff commited on
Commit
2be9bc2
1 Parent(s): 646eba0

Add follow_redirects parameter to async_httpx_client.get() call

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -216,7 +216,8 @@ async def get_summary(dataset_id: str) -> str | None:
216
  # dataset_id = request.dataset_id
217
  try:
218
  resp = await async_httpx_client.get(
219
- f"https://huggingface.co/datasets/{dataset_id}/raw/main/README.md"
 
220
  )
221
  if resp.status_code != 200:
222
  return None
 
216
  # dataset_id = request.dataset_id
217
  try:
218
  resp = await async_httpx_client.get(
219
+ f"https://huggingface.co/datasets/{dataset_id}/raw/main/README.md",
220
+ follow_redirects=True,
221
  )
222
  if resp.status_code != 200:
223
  return None