Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
import time
|
2 |
|
3 |
import gradio as gr
|
|
|
|
|
|
|
|
|
4 |
|
5 |
|
6 |
def init_choices():
|
7 |
-
t = time.gmtime(time.time())
|
8 |
-
return {"a": 1, "b": 2, f"{t.tm_min}:{t.tm_sec}": 3}
|
|
|
|
|
|
|
9 |
|
10 |
|
11 |
with gr.Blocks() as demo:
|
|
|
1 |
import time
|
2 |
|
3 |
import gradio as gr
|
4 |
+
from huggingface_hub import HfFileSystem
|
5 |
+
|
6 |
+
|
7 |
+
fs = HfFileSystem()
|
8 |
|
9 |
|
10 |
def init_choices():
|
11 |
+
#t = time.gmtime(time.time())
|
12 |
+
#return {"a": 1, "b": 2, f"{t.tm_min}:{t.tm_sec}": 3}
|
13 |
+
path = "datasets/albertvillanova/tmp-state-on-load-ds/**/**/*.json"
|
14 |
+
paths = fs.glob(path)
|
15 |
+
return {path: path for path in paths}
|
16 |
|
17 |
|
18 |
with gr.Blocks() as demo:
|