merve HF staff commited on
Commit
acaa4d9
1 Parent(s): 53117e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)