Hyeonseo commited on
Commit
47398eb
·
verified ·
1 Parent(s): 2663b04

Update: Gradio description

Browse files
Files changed (1) hide show
  1. app.py +20 -1
app.py CHANGED
@@ -217,7 +217,26 @@ def rank(q: str, rows: T.List[Row]):
217
 
218
  # -------------------- Gradio UI --------------------
219
  with gr.Blocks(title="Open Dataset Finder (HF • Zenodo • Kaggle)") as demo:
220
- gr.Markdown("### Search Hugging Face & Zenodo by default. Kaggle is enabled if credentials exist (API → CLI fallback).")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  with gr.Row():
222
  q = gr.Textbox(label="Query / Idea", value="korean weather")
223
  k = gr.Slider(10, 200, value=40, step=10, label="Results per source")
 
217
 
218
  # -------------------- Gradio UI --------------------
219
  with gr.Blocks(title="Open Dataset Finder (HF • Zenodo • Kaggle)") as demo:
220
+ gr.Markdown(
221
+ """
222
+ # 🔍 Open Dataset Finder
223
+
224
+ This app lets you search datasets from multiple open data sources.
225
+
226
+ - **Hugging Face Datasets**: Public machine learning datasets for NLP, computer vision, speech, and more.
227
+ - **Zenodo**: Research datasets shared by scientists and institutions, often linked to academic publications.
228
+ - **Kaggle**: Community datasets, competition datasets, and practice datasets shared on Kaggle.
229
+
230
+ ### Kaggle authentication
231
+ To enable Kaggle search, you need to add your Kaggle API credentials as **Repository secrets** in the Space settings:
232
+
233
+ - `KAGGLE_USERNAME`: your Kaggle username
234
+ - `KAGGLE_KEY`: your Kaggle API token (found in the `kaggle.json` file you can download from your Kaggle account)
235
+
236
+ Once the secrets are set, you can check the Kaggle box in the UI and search Kaggle datasets directly here.
237
+ """
238
+ )
239
+
240
  with gr.Row():
241
  q = gr.Textbox(label="Query / Idea", value="korean weather")
242
  k = gr.Slider(10, 200, value=40, step=10, label="Results per source")