merve HF staff commited on
Commit
1ac7123
β€’
1 Parent(s): 177d46a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -7,7 +7,8 @@ import subprocess
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. 🌟 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. Dataset name you'll enter will be used for repository name so make sure it doesn't exist and it doesn't contain spaces."
 
11
  title = "Dataset Profiler πŸͺ„βœ¨"
12
  token = gr.Textbox(label = "Your Hugging Face Token")
13
  username = gr.Textbox(label = "Your Hugging Face User Name")
@@ -31,10 +32,9 @@ emoji: ✨
31
  colorFrom: green
32
  colorTo: red
33
  sdk: static
34
-
35
  pinned: false
36
  tags:
37
- - dataset report
38
  ---"
39
  with open("README.md", "w+") as f:
40
  f.write(readme)
@@ -42,4 +42,4 @@ tags:
42
 
43
  return f"Your dataset report will be ready at {repo_url}"
44
 
45
- gr.Interface(profile_dataset, title = title, description = description, inputs = [dataset, username, token, dataset_name], outputs=[output_text], enable_queue = True, examples = [["auto-mpg.csv", "username", "token", "autompg"]]).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. 🌟
11
+ 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. Dataset name you'll enter will be used for repository name so make sure it doesn't exist and it doesn't contain spaces."
12
  title = "Dataset Profiler πŸͺ„βœ¨"
13
  token = gr.Textbox(label = "Your Hugging Face Token")
14
  username = gr.Textbox(label = "Your Hugging Face User Name")
 
32
  colorFrom: green
33
  colorTo: red
34
  sdk: static
 
35
  pinned: false
36
  tags:
37
+ - dataset-report
38
  ---"
39
  with open("README.md", "w+") as f:
40
  f.write(readme)
 
42
 
43
  return f"Your dataset report will be ready at {repo_url}"
44
 
45
+ gr.Interface(profile_dataset, title = title, description = description, inputs = [dataset, username, token, dataset_name], outputs=[output_text], enable_queue = True).launch(debug=True)