Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
d9d7ffb
1
Parent(s):
30f40f7
Update app.py
Browse files
app.py
CHANGED
@@ -154,10 +154,9 @@ def util_ui():
|
|
154 |
|
155 |
def load_javascript():
|
156 |
head = ''
|
157 |
-
with open('jsReloader.js', 'r', encoding='utf8') as j:
|
158 |
-
head += f'<script>{j.read()}</script>\n'
|
159 |
for f in sorted(os.listdir('./tagcomplete/javascript')):
|
160 |
head += f'<script type="text/javascript" src="file=tagcomplete/javascript/{f}"></script>\n'
|
|
|
161 |
|
162 |
share = gr.routes.templates.TemplateResponse
|
163 |
def template_response(*args, **kwargs):
|
|
|
154 |
|
155 |
def load_javascript():
|
156 |
head = ''
|
|
|
|
|
157 |
for f in sorted(os.listdir('./tagcomplete/javascript')):
|
158 |
head += f'<script type="text/javascript" src="file=tagcomplete/javascript/{f}"></script>\n'
|
159 |
+
head += '<script>window.onload = function () {setTimeout(run, 5000);};</script>\n'
|
160 |
|
161 |
share = gr.routes.templates.TemplateResponse
|
162 |
def template_response(*args, **kwargs):
|