Spaces:
Sleeping
Sleeping
Commit
·
efe37d4
1
Parent(s):
951ca42
Download file from dataset v2
Browse files
app.py
CHANGED
|
@@ -2,8 +2,8 @@ import gradio as gr
|
|
| 2 |
import json
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
|
| 5 |
-
hf_hub_download(repo_id="johnbradley/Test-Dataset", filename="data.json", repo_type="dataset")
|
| 6 |
-
with open(
|
| 7 |
data = json.load(infile)
|
| 8 |
print(data)
|
| 9 |
|
|
|
|
| 2 |
import json
|
| 3 |
from huggingface_hub import hf_hub_download
|
| 4 |
|
| 5 |
+
path = hf_hub_download(repo_id="johnbradley/Test-Dataset", filename="data.json", repo_type="dataset")
|
| 6 |
+
with open(path) as infile:
|
| 7 |
data = json.load(infile)
|
| 8 |
print(data)
|
| 9 |
|