AndrewMTA
commited on
Commit
•
7cc2e63
1
Parent(s):
3371368
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from launch import prepare_environment
|
3 |
+
# Your interface setup code goes here
|
4 |
+
|
5 |
+
iface = gr.Interface(
|
6 |
+
fn=prepare_environment
|
7 |
+
inputs="text",
|
8 |
+
outputs="text",
|
9 |
+
title="Your Interface Title"
|
10 |
+
)
|
11 |
+
|
12 |
+
iface.launch()
|
webui.py
CHANGED
@@ -15,7 +15,7 @@ import modules.style_sorter as style_sorter
|
|
15 |
import modules.meta_parser
|
16 |
import args_manager
|
17 |
import copy
|
18 |
-
|
19 |
from modules.sdxl_styles import legal_style_names
|
20 |
from modules.private_logger import get_current_html_path
|
21 |
from modules.ui_gradio_extensions import reload_javascript
|
@@ -675,8 +675,8 @@ def dump_default_english_config():
|
|
675 |
|
676 |
|
677 |
# dump_default_english_config()
|
678 |
-
|
679 |
-
|
680 |
inbrowser=args_manager.args.in_browser,
|
681 |
server_name=args_manager.args.listen,
|
682 |
server_port=args_manager.args.port,
|
@@ -685,5 +685,3 @@ interface = Interface(
|
|
685 |
allowed_paths=[modules.config.path_outputs],
|
686 |
blocked_paths=[constants.AUTH_FILENAME]
|
687 |
)
|
688 |
-
|
689 |
-
interface.launch()
|
|
|
15 |
import modules.meta_parser
|
16 |
import args_manager
|
17 |
import copy
|
18 |
+
|
19 |
from modules.sdxl_styles import legal_style_names
|
20 |
from modules.private_logger import get_current_html_path
|
21 |
from modules.ui_gradio_extensions import reload_javascript
|
|
|
675 |
|
676 |
|
677 |
# dump_default_english_config()
|
678 |
+
|
679 |
+
shared.gradio_root.launch(
|
680 |
inbrowser=args_manager.args.in_browser,
|
681 |
server_name=args_manager.args.listen,
|
682 |
server_port=args_manager.args.port,
|
|
|
685 |
allowed_paths=[modules.config.path_outputs],
|
686 |
blocked_paths=[constants.AUTH_FILENAME]
|
687 |
)
|
|
|
|