toshas commited on
Commit
48e1c1b
·
1 Parent(s): fc200df
Files changed (2) hide show
  1. README.md +1 -0
  2. gradio_dualvision/app_template.py +1 -0
README.md CHANGED
@@ -58,6 +58,7 @@ Check out the template image processing [app.py](app.py); copy it and start modi
58
  - `squeeze_canvas`: When True, the image is fit to the browser viewport. When False, the image is fit to width (Default: `True`).
59
  - `squeeze_viewport_height_pct`: Percentage of the browser viewport height (Default: `75`).
60
  - `left_selector_visible`: Whether controls for changing modalities in the left part of the slider are visible (Default: `False`).
 
61
  - `key_original_image`: Name of the key under which the input image is shown in the modality selectors (Default: `"Original"`).
62
  - `spaces_zero_gpu_enabled`: When True, the app wraps the processing function with the ZeroGPU decorator.
63
  - `spaces_zero_gpu_duration`: Defines an integer duration in seconds passed into the ZeroGPU decorator.
 
58
  - `squeeze_canvas`: When True, the image is fit to the browser viewport. When False, the image is fit to width (Default: `True`).
59
  - `squeeze_viewport_height_pct`: Percentage of the browser viewport height (Default: `75`).
60
  - `left_selector_visible`: Whether controls for changing modalities in the left part of the slider are visible (Default: `False`).
61
+ - `advanced_settings_can_be_half_width`: Whether allow placing advanced settings dropdown in half-column space whenever possible (Default: `True`).
62
  - `key_original_image`: Name of the key under which the input image is shown in the modality selectors (Default: `"Original"`).
63
  - `spaces_zero_gpu_enabled`: When True, the app wraps the processing function with the ZeroGPU decorator.
64
  - `spaces_zero_gpu_duration`: Defines an integer duration in seconds passed into the ZeroGPU decorator.
gradio_dualvision/app_template.py CHANGED
@@ -80,6 +80,7 @@ class DualVisionApp(gr.Blocks):
80
  squeeze_viewport_height_pct: Percentage of the browser viewport height (Default: `75`).
81
  left_selector_visible: Whether controls for changing modalities in the left part of the slider are visible (Default: `False`).
82
  key_original_image: Name of the key under which the input image is shown in the modality selectors (Default: `"Original"`).
 
83
  spaces_zero_gpu_enabled: When True, the app wraps the processing function with the ZeroGPU decorator.
84
  spaces_zero_gpu_duration: Defines an integer duration in seconds passed into the ZeroGPU decorator.
85
  slider_position: Position of the slider between 0 and 1 (Default: `0.5`).
 
80
  squeeze_viewport_height_pct: Percentage of the browser viewport height (Default: `75`).
81
  left_selector_visible: Whether controls for changing modalities in the left part of the slider are visible (Default: `False`).
82
  key_original_image: Name of the key under which the input image is shown in the modality selectors (Default: `"Original"`).
83
+ advanced_settings_can_be_half_width: Whether allow placing advanced settings dropdown in half-column space whenever possible (Default: `True`).
84
  spaces_zero_gpu_enabled: When True, the app wraps the processing function with the ZeroGPU decorator.
85
  spaces_zero_gpu_duration: Defines an integer duration in seconds passed into the ZeroGPU decorator.
86
  slider_position: Position of the slider between 0 and 1 (Default: `0.5`).