ydshieh HF Staff commited on
Commit
fc68ad2
·
verified ·
1 Parent(s): 56d8d5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import json
2
  import os
3
  from functools import lru_cache
4
- from typing import List, Tuple
5
 
6
  import gradio as gr
7
  from huggingface_hub import HfApi, hf_hub_download
@@ -41,7 +41,7 @@ def _list_collection_files(pr_number: str) -> Tuple[str, ...]:
41
  return tuple(files)
42
 
43
 
44
- def _load_payload(path: str) -> dict | None:
45
  try:
46
  local_path = hf_hub_download(
47
  repo_id=DATASET_ID,
 
1
  import json
2
  import os
3
  from functools import lru_cache
4
+ from typing import List, Optional, Tuple
5
 
6
  import gradio as gr
7
  from huggingface_hub import HfApi, hf_hub_download
 
41
  return tuple(files)
42
 
43
 
44
+ def _load_payload(path: str) -> Optional[dict]:
45
  try:
46
  local_path = hf_hub_download(
47
  repo_id=DATASET_ID,