Update app.py
Browse files
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
|
| 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,
|