@@ -1189,7 +1189,7 @@ def update_interp_description(value):
1189
1189
process_focal_crop_entropy_weight = gr .Slider (label = 'Focal point entropy weight' , value = 0.15 , minimum = 0.0 , maximum = 1.0 , step = 0.05 , elem_id = "train_process_focal_crop_entropy_weight" )
1190
1190
process_focal_crop_edges_weight = gr .Slider (label = 'Focal point edges weight' , value = 0.5 , minimum = 0.0 , maximum = 1.0 , step = 0.05 , elem_id = "train_process_focal_crop_edges_weight" )
1191
1191
process_focal_crop_debug = gr .Checkbox (label = 'Create debug image' , elem_id = "train_process_focal_crop_debug" )
1192
-
1192
+
1193
1193
with gr .Column (visible = False ) as process_multicrop_col :
1194
1194
gr .Markdown ('Each image is center-cropped with an automatically chosen width and height.' )
1195
1195
with gr .Row ():
@@ -1201,7 +1201,7 @@ def update_interp_description(value):
1201
1201
with gr .Row ():
1202
1202
process_multicrop_objective = gr .Radio (["Maximize area" , "Minimize error" ], value = "Maximize area" , label = "Resizing objective" , elem_id = "train_process_multicrop_objective" )
1203
1203
process_multicrop_threshold = gr .Slider (minimum = 0 , maximum = 1 , step = 0.01 , label = "Error threshold" , value = 0.1 , elem_id = "train_process_multicrop_threshold" )
1204
-
1204
+
1205
1205
with gr .Row ():
1206
1206
with gr .Column (scale = 3 ):
1207
1207
gr .HTML (value = "" )
@@ -1244,7 +1244,7 @@ def get_textual_inversion_template_names():
1244
1244
with FormRow ():
1245
1245
embedding_learn_rate = gr .Textbox (label = 'Embedding Learning rate' , placeholder = "Embedding Learning rate" , value = "0.005" , elem_id = "train_embedding_learn_rate" )
1246
1246
hypernetwork_learn_rate = gr .Textbox (label = 'Hypernetwork Learning rate' , placeholder = "Hypernetwork Learning rate" , value = "0.00001" , elem_id = "train_hypernetwork_learn_rate" )
1247
-
1247
+
1248
1248
with FormRow ():
1249
1249
clip_grad_mode = gr .Dropdown (value = "disabled" , label = "Gradient Clipping" , choices = ["disabled" , "value" , "norm" ])
1250
1250
clip_grad_value = gr .Textbox (placeholder = "Gradient clip value" , value = "0.1" , show_label = False )
@@ -1578,7 +1578,7 @@ def run_settings_single(value, key):
1578
1578
gr .HTML (shared .html ("licenses.html" ), elem_id = "licenses" )
1579
1579
1580
1580
gr .Button (value = "Show all pages" , elem_id = "settings_show_all_pages" )
1581
-
1581
+
1582
1582
1583
1583
def unload_sd_weights ():
1584
1584
modules .sd_models .unload_model_weights ()
@@ -1652,7 +1652,9 @@ def request_restart():
1652
1652
for _interface , label , _ifid in interfaces :
1653
1653
shared .tab_names .append (label )
1654
1654
1655
- with gr .Blocks (theme = shared .gradio_theme , analytics_enabled = False , title = "Stable Diffusion" ) as demo :
1655
+ with gr .Blocks (theme = shared .gradio_theme , analytics_enabled = False , title = "Talkable Art Box" ) as demo :
1656
+ with gr .Row (elem_id = "talkable_header" ):
1657
+ gr .HTML (value = "<img src=\" https://curebit-staging.s3.amazonaws.com/talkable-art-terminal-light-logo.png\" style=\" height: 32px\" class=\" mb-4 px-2\" >" )
1656
1658
with gr .Row (elem_id = "quicksettings" , variant = "compact" ):
1657
1659
for i , k , item in sorted (quicksettings_list , key = lambda x : quicksettings_names .get (x [1 ], x [0 ])):
1658
1660
component = create_setting_component (k , is_quicksettings = True )
@@ -1877,6 +1879,9 @@ def javascript_html():
1877
1879
1878
1880
if cmd_opts .theme :
1879
1881
head += f'<script type="text/javascript">set_theme(\" { cmd_opts .theme } \" );</script>\n '
1882
+ with open ('/etc/hostname' , 'r' ) as file :
1883
+ hostname = file .read ().strip ()
1884
+ head += f"<script>window.TkblBoxName = '{ hostname } '</script>\n "
1880
1885
1881
1886
return head
1882
1887
0 commit comments