Spaces:
Sleeping
Sleeping
Keith Bourne commited on
Commit ·
a224b03
1
Parent(s): e4def22
Add more GS code 8
Browse files
app.py
CHANGED
|
@@ -42,18 +42,18 @@ print("is none?", HF_TOKEN is None)
|
|
| 42 |
|
| 43 |
print("hfh", huggingface_hub.__version__)
|
| 44 |
|
| 45 |
-
# overriding/appending to the gradio template
|
| 46 |
-
SCRIPT = """
|
| 47 |
-
<script>
|
| 48 |
-
if (!window.hasBeenRun) {
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
}
|
| 53 |
-
</script>
|
| 54 |
-
"""
|
| 55 |
-
with open(os.path.join(gr.networking.STATIC_TEMPLATE_LIB, "frontend", "index.html"), "a") as f:
|
| 56 |
-
|
| 57 |
|
| 58 |
repo = Repository(
|
| 59 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
|
|
|
| 42 |
|
| 43 |
print("hfh", huggingface_hub.__version__)
|
| 44 |
|
| 45 |
+
# # overriding/appending to the gradio template
|
| 46 |
+
# SCRIPT = """
|
| 47 |
+
# <script>
|
| 48 |
+
# if (!window.hasBeenRun) {
|
| 49 |
+
# window.hasBeenRun = true;
|
| 50 |
+
# console.log("should only happen once");
|
| 51 |
+
# document.querySelector("button.submit").click();
|
| 52 |
+
# }
|
| 53 |
+
# </script>
|
| 54 |
+
# """
|
| 55 |
+
# with open(os.path.join(gr.networking.STATIC_TEMPLATE_LIB, "frontend", "index.html"), "a") as f:
|
| 56 |
+
# f.write(SCRIPT)
|
| 57 |
|
| 58 |
repo = Repository(
|
| 59 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|