Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def analyze_datasets(dataset, dataset_name, token, column=None, pairwise="off"):
|
|
23 |
analyze_report.show_html('./index.html', open_browser=False)
|
24 |
repo_url = create_repo(f"{username}/{dataset_name}", repo_type = "space", token = token, space_sdk = "static", private=False)
|
25 |
|
26 |
-
upload_file(path_or_fileobj ="./index.html", path_in_repo = "./", repo_id =f"{username}/{dataset_name}", repo_type = "space", token=token)
|
27 |
readme = f"---\ntitle: {dataset_name}\nemoji: ✨\ncolorFrom: green\ncolorTo: red\nsdk: static\npinned: false\ntags:\n- dataset-report\n---"
|
28 |
with open("README.md", "w+") as f:
|
29 |
f.write(readme)
|
|
|
23 |
analyze_report.show_html('./index.html', open_browser=False)
|
24 |
repo_url = create_repo(f"{username}/{dataset_name}", repo_type = "space", token = token, space_sdk = "static", private=False)
|
25 |
|
26 |
+
upload_file(path_or_fileobj ="./index.html", path_in_repo = "./index.html", repo_id =f"{username}/{dataset_name}", repo_type = "space", token=token)
|
27 |
readme = f"---\ntitle: {dataset_name}\nemoji: ✨\ncolorFrom: green\ncolorTo: red\nsdk: static\npinned: false\ntags:\n- dataset-report\n---"
|
28 |
with open("README.md", "w+") as f:
|
29 |
f.write(readme)
|