merve HF staff commited on
Commit
e4cf83d
β€’
1 Parent(s): 92cb149

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -7,8 +7,10 @@ import subprocess
7
  import os
8
  import tempfile
9
 
 
 
10
  token = gr.Textbox(label = "Your Hugging Face Token")
11
- username = gr.Textbox(label = "Your Hugging Face User name")
12
  dataset_name = gr.Textbox(label = "Dataset Name")
13
  dataset = gr.File(label = "Dataset")
14
  output_text = gr.Textbox(label = "Status")
@@ -28,4 +30,4 @@ def profile_dataset(dataset, username, token, dataset_name):
28
 
29
  return f"Your dataset report will be ready at {repo_url}"
30
 
31
- gr.Interface(profile_dataset, inputs = [dataset, username, token, dataset_name], outputs=[output_text], enable_queue = True).launch(debug=True)
7
  import os
8
  import tempfile
9
 
10
+ description = "This Space will profile a dataset file that you drag and drop and push the profile report to your Hugging Face account. 🌟 \n The value in dataset name field you'll enter will be used in the namespace of the Space that will be pushed to your profile, so you can use it to version the reports too! πŸ™ŒπŸ» Feel free to open a discussion in case you have any feature requests."
11
+ title = "Dataset Profiler πŸͺ„βœ¨"
12
  token = gr.Textbox(label = "Your Hugging Face Token")
13
+ username = gr.Textbox(label = "Your Hugging Face User Name")
14
  dataset_name = gr.Textbox(label = "Dataset Name")
15
  dataset = gr.File(label = "Dataset")
16
  output_text = gr.Textbox(label = "Status")
30
 
31
  return f"Your dataset report will be ready at {repo_url}"
32
 
33
+ gr.Interface(profile_dataset, title = title, description = description, inputs = [dataset, username, token, dataset_name], outputs=[output_text], enable_queue = True).launch(debug=True)