Spaces:
Paused
Paused
added zStudio branding
Browse files- backstage.png +0 -0
- modules/ui_gradio_extensions.py +5 -0
- webui.py +2 -1
backstage.png
ADDED
![]() |
modules/ui_gradio_extensions.py
CHANGED
@@ -52,6 +52,11 @@ def css_html():
|
|
52 |
head = f'<link rel="stylesheet" property="stylesheet" href="{style_css_path}">'
|
53 |
return head
|
54 |
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
def reload_javascript():
|
57 |
js = javascript_html()
|
|
|
52 |
head = f'<link rel="stylesheet" property="stylesheet" href="{style_css_path}">'
|
53 |
return head
|
54 |
|
55 |
+
def zStudiosHeader(power_device):
|
56 |
+
logo_path = webpath('backstage.png')
|
57 |
+
zHead = f"""<table><tr><td><img src="{logo_path}" width="36" height="36"/></td><td><font size="5">zStudios Generative Media AI running on {power_device}</font></td></tr></table>"""
|
58 |
+
return zHead
|
59 |
+
|
60 |
|
61 |
def reload_javascript():
|
62 |
js = javascript_html()
|
webui.py
CHANGED
@@ -21,6 +21,7 @@ import torch
|
|
21 |
from modules.sdxl_styles import legal_style_names
|
22 |
from modules.private_logger import get_current_html_path
|
23 |
from modules.ui_gradio_extensions import reload_javascript
|
|
|
24 |
from modules.auth import auth_enabled, check_auth
|
25 |
from modules.util import is_json
|
26 |
|
@@ -116,7 +117,7 @@ else:
|
|
116 |
power_device = "CPU"
|
117 |
|
118 |
with shared.gradio_root:
|
119 |
-
gr.
|
120 |
with gr.Tab("DALL-E"):
|
121 |
with gr.Row(variant="panel"):
|
122 |
model = gr.Dropdown(choices=["dall-e-2", "dall-e-3"], label="Model", value="dall-e-3")
|
|
|
21 |
from modules.sdxl_styles import legal_style_names
|
22 |
from modules.private_logger import get_current_html_path
|
23 |
from modules.ui_gradio_extensions import reload_javascript
|
24 |
+
from modules.ui_gradio_extensions import zStudiosHeader
|
25 |
from modules.auth import auth_enabled, check_auth
|
26 |
from modules.util import is_json
|
27 |
|
|
|
117 |
power_device = "CPU"
|
118 |
|
119 |
with shared.gradio_root:
|
120 |
+
gr.HTML(zStudiosHeader(power_device))
|
121 |
with gr.Tab("DALL-E"):
|
122 |
with gr.Row(variant="panel"):
|
123 |
model = gr.Dropdown(choices=["dall-e-2", "dall-e-3"], label="Model", value="dall-e-3")
|