Liu Yiwen commited on
Commit
f21cf24
Β·
2 Parent(s): bb46ccc 32e21dd

Merge branch 'main' of https://huggingface.co/spaces/Kamarov/lotsa_explorer

Browse files
Files changed (2) hide show
  1. README.md +4 -4
  2. app.py +2 -2
README.md CHANGED
@@ -1,13 +1,13 @@
1
  ---
2
  title: Lotsa Explorer
3
- emoji: πŸƒ
4
- colorFrom: yellow
5
- colorTo: yellow
6
  sdk: gradio
7
  sdk_version: 5.12.0
8
  app_file: app.py
9
  pinned: false
10
- short_description: A tool for presenting lotsa datasets
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: Lotsa Explorer
3
+ emoji: πŸ“ˆ
4
+ colorFrom: indigo
5
+ colorTo: blue
6
  sdk: gradio
7
  sdk_version: 5.12.0
8
  app_file: app.py
9
  pinned: false
10
+ short_description: A tool for interactive observation of lotsa dataset
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -208,7 +208,7 @@ def get_page(dataset: str, config: str, split: str, page: str) -> Tuple[str, int
208
 
209
  with gr.Blocks() as demo:
210
  # εˆε§‹εŒ–η»„δ»Ά
211
- gr.Markdown("A tool for interactive observation of lotsa datasets, extended from lhoestq/datasets-explorer")
212
  cp_dataset = gr.Textbox("Salesforce/lotsa_data", label="Pick a dataset", placeholder="competitions/aiornot")
213
  cp_go = gr.Button("Explore")
214
  cp_config = gr.Dropdown(["plain_text"], value="plain_text", label="Config", visible=False)
@@ -331,4 +331,4 @@ with gr.Blocks() as demo:
331
  if __name__ == "__main__":
332
 
333
  app = gr.mount_gradio_app(app, demo, path="/")
334
- uvicorn.run(app, host="0.0.0.0", port=7861)
 
208
 
209
  with gr.Blocks() as demo:
210
  # εˆε§‹εŒ–η»„δ»Ά
211
+ gr.Markdown("A tool for interactive observation of lotsa dataset, extended from lhoestq/datasets-explorer")
212
  cp_dataset = gr.Textbox("Salesforce/lotsa_data", label="Pick a dataset", placeholder="competitions/aiornot")
213
  cp_go = gr.Button("Explore")
214
  cp_config = gr.Dropdown(["plain_text"], value="plain_text", label="Config", visible=False)
 
331
  if __name__ == "__main__":
332
 
333
  app = gr.mount_gradio_app(app, demo, path="/")
334
+ uvicorn.run(app, host="0.0.0.0", port=7860)