Update app.py
Browse files
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. π
|
|
|
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
|
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
|
|
|
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)
|