Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
62b37d0
1
Parent(s):
e0d733d
Update app.py
Browse files
app.py
CHANGED
@@ -154,6 +154,8 @@ def util_ui():
|
|
154 |
|
155 |
def ui():
|
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 |
with gr.Blocks(title="NAI Client", head=head, theme=gr.themes.Base()) as website:
|
|
|
154 |
|
155 |
def ui():
|
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 |
with gr.Blocks(title="NAI Client", head=head, theme=gr.themes.Base()) as website:
|