polinaeterna HF staff commited on
Commit
19f3bd0
1 Parent(s): 02aeff8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -8,11 +8,13 @@ with gr.Blocks() as demo:
8
  label="Hub Dataset ID",
9
  placeholder="Search for dataset id on Huggingface",
10
  search_type="dataset",
11
- value="HuggingFaceFW/fineweb",
12
  )
13
 
14
  @gr.render(inputs=dataset_name)
15
  def embed(name):
 
 
16
  html_code = f"""
17
  <iframe
18
  src="https://huggingface.co/datasets/{name}/embed/viewer/default/train"
 
8
  label="Hub Dataset ID",
9
  placeholder="Search for dataset id on Huggingface",
10
  search_type="dataset",
11
+ value="",
12
  )
13
 
14
  @gr.render(inputs=dataset_name)
15
  def embed(name):
16
+ if not name:
17
+ return gr.Markdown("### No dataset provided")
18
  html_code = f"""
19
  <iframe
20
  src="https://huggingface.co/datasets/{name}/embed/viewer/default/train"