Spaces:
Sleeping
Sleeping
Pclanglais
commited on
Commit
•
e9ab841
1
Parent(s):
2c14e84
Update app.py
Browse files
app.py
CHANGED
@@ -67,15 +67,13 @@ try:
|
|
67 |
display_name = get_display_name(collection_id)
|
68 |
|
69 |
with gr.Blocks() as demo:
|
70 |
-
gr.Markdown(f"<h1>
|
71 |
gr.Markdown(
|
72 |
f"[View full collection on Hugging Face](https://huggingface.co/collections/{collection_id})"
|
73 |
)
|
74 |
|
75 |
gr.Markdown("""
|
76 |
-
This app allows you to browse
|
77 |
-
Use the 'Previous' and 'Next' buttons to navigate through the datasets in the collection.
|
78 |
-
See below for how to set up this app for a different collection.""")
|
79 |
|
80 |
index_state = gr.State(value=0)
|
81 |
|
@@ -85,12 +83,7 @@ try:
|
|
85 |
|
86 |
dataset_info = gr.Markdown(f"Dataset 1 of {len(dataset_ids)}: {dataset_ids[0]}")
|
87 |
iframe_output = gr.HTML()
|
88 |
-
gr.Markdown("""**Note**: This space
|
89 |
-
If you'd like to use it for a different collection:
|
90 |
-
1. Duplicate this space
|
91 |
-
2. In your duplicated space, set the `COLLECTION_SLUG_OR_URL` environment variable to your desired collection ID or URL
|
92 |
-
3. Your new space will then display datasets from your chosen collection!
|
93 |
-
Checkout the [docs](https://huggingface.co/docs/hub/datasets-viewer-embed) for other ways to use the iframe viewer.
|
94 |
""")
|
95 |
left_btn.click(
|
96 |
navigate_dataset,
|
|
|
67 |
display_name = get_display_name(collection_id)
|
68 |
|
69 |
with gr.Blocks() as demo:
|
70 |
+
gr.Markdown(f"<h1>Finance Commons</h1>")
|
71 |
gr.Markdown(
|
72 |
f"[View full collection on Hugging Face](https://huggingface.co/collections/{collection_id})"
|
73 |
)
|
74 |
|
75 |
gr.Markdown("""
|
76 |
+
This app allows you to browse Finance Commons, the largest collection of open datasets on finance documents.""")
|
|
|
|
|
77 |
|
78 |
index_state = gr.State(value=0)
|
79 |
|
|
|
83 |
|
84 |
dataset_info = gr.Markdown(f"Dataset 1 of {len(dataset_ids)}: {dataset_ids[0]}")
|
85 |
iframe_output = gr.HTML()
|
86 |
+
gr.Markdown("""**Note**: This space currently mostly supports text formats.
|
|
|
|
|
|
|
|
|
|
|
87 |
""")
|
88 |
left_btn.click(
|
89 |
navigate_dataset,
|