Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
5afc44aa
Commit
5afc44aa
authored
May 13, 2023
by
catboxanon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Requested changes
parent
867be742
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
16 deletions
+11
-16
modules/shared.py
modules/shared.py
+7
-8
style.css
style.css
+3
-0
webui.py
webui.py
+1
-8
No files found.
modules/shared.py
View file @
5afc44aa
...
...
@@ -665,20 +665,19 @@ def reload_gradio_theme(theme_name=None):
if
not
theme_name
:
theme_name
=
opts
.
gradio_theme
default_theme_args
=
dict
(
font
=
[
"Source Sans Pro"
,
'ui-sans-serif'
,
'system-ui'
,
'sans-serif'
],
font_mono
=
[
'IBM Plex Mono'
,
'ui-monospace'
,
'Consolas'
,
'monospace'
],
)
if
theme_name
==
"Default"
:
gradio_theme
=
gr
.
themes
.
Default
(
font
=
[
'Helvetica'
,
'ui-sans-serif'
,
'system-ui'
,
'sans-serif'
],
font_mono
=
[
'IBM Plex Mono'
,
'ui-monospace'
,
'Consolas'
,
'monospace'
],
)
gradio_theme
=
gr
.
themes
.
Default
(
**
default_theme_args
)
else
:
try
:
gradio_theme
=
gr
.
themes
.
ThemeClass
.
from_hub
(
theme_name
)
except
Exception
as
e
:
errors
.
display
(
e
,
"changing gradio theme"
)
gradio_theme
=
gr
.
themes
.
Default
(
font
=
[
'Helvetica'
,
'ui-sans-serif'
,
'system-ui'
,
'sans-serif'
],
font_mono
=
[
'IBM Plex Mono'
,
'ui-monospace'
,
'Consolas'
,
'monospace'
],
)
gradio_theme
=
gr
.
themes
.
Default
(
**
default_theme_args
)
...
...
style.css
View file @
5afc44aa
/* temporary fix to load default gradio font in frontend instead of backend */
@import
url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap')
;
/* general gradio fixes */
...
...
webui.py
View file @
5afc44aa
...
...
@@ -28,15 +28,8 @@ warnings.filterwarnings(action="ignore", category=UserWarning, module="torchvisi
startup_timer
.
record
(
"import torch"
)
import
requests
def
gradio_get
(
url
,
**
kwargs
):
kwargs
.
setdefault
(
'allow_redirects'
,
True
)
return
requests
.
api
.
request
(
'get'
,
'http://127.0.0.1/'
,
**
kwargs
)
original_get
=
requests
.
get
requests
.
get
=
gradio_get
import
gradio
requests
.
get
=
original_get
startup_timer
.
record
(
"import gradio"
)
startup_timer
.
record
(
"import gradio"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment