parent
ec3d211ab5
commit
db945c8a27
@ -1 +1 @@
|
||||
version = '2.1.42'
|
||||
version = '2.1.43'
|
||||
|
@ -5,6 +5,13 @@ from PIL import Image
|
||||
from modules.util import generate_temp_filename
|
||||
|
||||
|
||||
def get_current_html_path():
|
||||
date_string, local_temp_filename, only_name = generate_temp_filename(folder=modules.path.temp_outputs_path,
|
||||
extension='png')
|
||||
html_name = os.path.join(os.path.dirname(local_temp_filename), 'log.html')
|
||||
return html_name
|
||||
|
||||
|
||||
def log(img, dic, single_line_number=3):
|
||||
date_string, local_temp_filename, only_name = generate_temp_filename(folder=modules.path.temp_outputs_path, extension='png')
|
||||
os.makedirs(os.path.dirname(local_temp_filename), exist_ok=True)
|
||||
|
6
webui.py
6
webui.py
@ -2,7 +2,6 @@ import gradio as gr
|
||||
import random
|
||||
import time
|
||||
import shared
|
||||
import argparse
|
||||
import modules.path
|
||||
import fooocus_version
|
||||
import modules.html
|
||||
@ -12,7 +11,8 @@ import modules.gradio_hijack as grh
|
||||
import modules.advanced_parameters as advanced_parameters
|
||||
import args_manager
|
||||
|
||||
from modules.sdxl_styles import legal_style_names, aspect_ratios, fooocus_expansion, default_aspect_ratio
|
||||
from modules.sdxl_styles import legal_style_names, aspect_ratios, default_aspect_ratio
|
||||
from modules.private_logger import get_current_html_path
|
||||
|
||||
|
||||
def generate_clicked(*args):
|
||||
@ -190,6 +190,8 @@ with shared.gradio_root:
|
||||
|
||||
seed_random.change(random_checked, inputs=[seed_random], outputs=[image_seed], queue=False)
|
||||
|
||||
gr.HTML(f'<a href="/file={get_current_html_path()}">\U0001F4DA History Log</a>')
|
||||
|
||||
with gr.Tab(label='Style'):
|
||||
style_selections = gr.CheckboxGroup(show_label=False, container=False,
|
||||
choices=legal_style_names,
|
||||
|
Loading…
Reference in New Issue
Block a user