Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#16 from xiehust/master
Browse files Browse the repository at this point in the history
fix image upload error
  • Loading branch information
xieyongliang committed Apr 17, 2023
2 parents c68bad4 + 733e392 commit ba87e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/shared.py
Expand Up @@ -537,7 +537,7 @@ def refresh_sd_models(username):
}))

options_templates.update(options_section(('saving-paths', "Paths for saving"), {
# "train_files_s3bucket":OptionInfo(get_default_sagemaker_bucket(),"S3 bucket name for uploading/downloading images",component_args=hide_dirs),
"train_files_s3bucket":OptionInfo(get_default_sagemaker_bucket(),"S3 bucket name for uploading/downloading images",component_args=hide_dirs),
"outdir_samples": OptionInfo("", "Output directory for images; if empty, defaults to three directories below", component_args=hide_dirs),
"outdir_txt2img_samples": OptionInfo("outputs/txt2img-images", 'Output directory for txt2img images', component_args=hide_dirs),
"outdir_img2img_samples": OptionInfo("outputs/img2img-images", 'Output directory for img2img images', component_args=hide_dirs),
Expand Down
4 changes: 2 additions & 2 deletions modules/ui.py
Expand Up @@ -922,9 +922,9 @@ def run_settings_single(value, key, request : gr.Request):
with gr.Row():
with gr.Column(scale=4):
models_s3bucket = gr.Textbox(label="S3 path for downloading model files (E.g, s3://bucket-name/models/)",
value=default_s3_path,visible=False)
value=default_s3_path,visible=True)
with gr.Column(scale=1):
set_models_s3bucket_btn = gr.Button(value="Update model files path",elem_id='id_set_models_s3bucket',visible=False)
set_models_s3bucket_btn = gr.Button(value="Update model files path",elem_id='id_set_models_s3bucket',visible=True)
with gr.Column(scale=1):
reload_models_btn = gr.Button(value='Reload all models', elem_id='id_reload_all_models')

Expand Down

0 comments on commit ba87e23

Please sign in to comment.