Update app.py
Browse files6 unmodified lines7891011121317 unmodified lines313233343536373839401 unmodified line424344456 unmodified linesimport osimport tempfiledescription = "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."title = "Dataset Profiler πͺβ¨"token = gr.Textbox(label = "Your Hugging Face Token")username = gr.Textbox(label = "Your Hugging Face User Name")17 unmodified linescolorFrom: greencolorTo: redsdk: staticpinned: falsetags:- dataset report---"with open("README.md", "w+") as f:f.write(readme)1 unmodified linereturn f"Your dataset report will be ready at {repo_url}"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)6 unmodified lines789101112131417 unmodified lines3233343536373839401 unmodified line424344456 unmodified linesimport osimport tempfiledescription = "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."title = "Dataset Profiler πͺβ¨"token = gr.Textbox(label = "Your Hugging Face Token")username = gr.Textbox(label = "Your Hugging Face User Name")17 unmodified linescolorFrom: greencolorTo: redsdk: staticpinned: falsetags:- dataset-report---"with open("README.md", "w+") as f:f.write(readme)1 unmodified linereturn f"Your dataset report will be ready at {repo_url}"gr.Interface(profile_dataset, title = title, description = description, inputs = [dataset, username, token, dataset_name], outputs=[output_text], enable_queue = True).launch(debug=True)
app.py+4-4