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