Upload folder using huggingface_hub
Browse files- entry_with_update.py +1 -15
- webui.py +2 -5
entry_with_update.py
CHANGED
|
@@ -43,18 +43,4 @@ except Exception as e:
|
|
| 43 |
print(str(e))
|
| 44 |
|
| 45 |
print('Update succeeded.')
|
| 46 |
-
from launch import *
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
iface = gr.Interface(
|
| 50 |
-
fn=your_function_name, # Replace your_function_name with the function you want to run
|
| 51 |
-
title='Your Title',
|
| 52 |
-
description='Your Description',
|
| 53 |
-
inputs=[], # Add your input components here
|
| 54 |
-
outputs=[], # Add your output components here
|
| 55 |
-
theme='default', # Change if you want a different theme
|
| 56 |
-
allow_flagging=False # Change if you want to allow flagging
|
| 57 |
-
)
|
| 58 |
-
|
| 59 |
-
# Launch the Gradio interface
|
| 60 |
-
iface.launch()
|
|
|
|
| 43 |
print(str(e))
|
| 44 |
|
| 45 |
print('Update succeeded.')
|
| 46 |
+
from launch import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
webui.py
CHANGED
|
@@ -15,7 +15,6 @@ import modules.style_sorter as style_sorter
|
|
| 15 |
import modules.meta_parser
|
| 16 |
import args_manager
|
| 17 |
import copy
|
| 18 |
-
from gradio import Interface
|
| 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
|
|
@@ -1366,8 +1365,8 @@ def dump_default_english_config():
|
|
| 1366 |
|
| 1367 |
|
| 1368 |
# dump_default_english_config()
|
| 1369 |
-
|
| 1370 |
-
|
| 1371 |
inbrowser=args_manager.args.in_browser,
|
| 1372 |
server_name=args_manager.args.listen,
|
| 1373 |
server_port=args_manager.args.port,
|
|
@@ -1376,5 +1375,3 @@ interface = Interface(
|
|
| 1376 |
allowed_paths=[modules.config.path_outputs],
|
| 1377 |
blocked_paths=[constants.AUTH_FILENAME]
|
| 1378 |
)
|
| 1379 |
-
|
| 1380 |
-
interface.launch()
|
|
|
|
| 15 |
import modules.meta_parser
|
| 16 |
import args_manager
|
| 17 |
import copy
|
|
|
|
| 18 |
from modules.sdxl_styles import legal_style_names
|
| 19 |
from modules.private_logger import get_current_html_path
|
| 20 |
from modules.ui_gradio_extensions import reload_javascript
|
|
|
|
| 1365 |
|
| 1366 |
|
| 1367 |
# dump_default_english_config()
|
| 1368 |
+
|
| 1369 |
+
shared.gradio_root.launch(
|
| 1370 |
inbrowser=args_manager.args.in_browser,
|
| 1371 |
server_name=args_manager.args.listen,
|
| 1372 |
server_port=args_manager.args.port,
|
|
|
|
| 1375 |
allowed_paths=[modules.config.path_outputs],
|
| 1376 |
blocked_paths=[constants.AUTH_FILENAME]
|
| 1377 |
)
|
|
|
|
|
|