Spaces:
Running
on
L4
Running
on
L4
Alexander Becker
commited on
Commit
·
9077960
1
Parent(s):
324b055
Update layout
Browse files- app.py +2 -2
- gradio_dualvision/app_template.py +1 -1
app.py
CHANGED
|
@@ -15,7 +15,7 @@ CHECKPOINT = "checkpoints/thera-edsr-plus.pkl"
|
|
| 15 |
|
| 16 |
|
| 17 |
class TheraApp(DualVisionApp):
|
| 18 |
-
DEFAULT_SCALE = 3.
|
| 19 |
DEFAULT_DO_ENSEMBLE = False
|
| 20 |
|
| 21 |
def make_header(self):
|
|
@@ -40,7 +40,7 @@ class TheraApp(DualVisionApp):
|
|
| 40 |
)
|
| 41 |
|
| 42 |
def build_user_components(self):
|
| 43 |
-
with gr.
|
| 44 |
scale = gr.Slider(
|
| 45 |
label="Scaling factor",
|
| 46 |
minimum=1,
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
class TheraApp(DualVisionApp):
|
| 18 |
+
DEFAULT_SCALE = 3.92
|
| 19 |
DEFAULT_DO_ENSEMBLE = False
|
| 20 |
|
| 21 |
def make_header(self):
|
|
|
|
| 40 |
)
|
| 41 |
|
| 42 |
def build_user_components(self):
|
| 43 |
+
with gr.Row():
|
| 44 |
scale = gr.Slider(
|
| 45 |
label="Scaling factor",
|
| 46 |
minimum=1,
|
gradio_dualvision/app_template.py
CHANGED
|
@@ -588,7 +588,7 @@ class DualVisionApp(gr.Blocks):
|
|
| 588 |
)
|
| 589 |
|
| 590 |
def make_advanced_settings(self):
|
| 591 |
-
with gr.
|
| 592 |
user_components = self.build_user_components()
|
| 593 |
if not isinstance(user_components, dict) or any(
|
| 594 |
not isinstance(k, str) or not isinstance(v, Component)
|
|
|
|
| 588 |
)
|
| 589 |
|
| 590 |
def make_advanced_settings(self):
|
| 591 |
+
with gr.Column(variant='compact', elem_id="settings-accordion"):
|
| 592 |
user_components = self.build_user_components()
|
| 593 |
if not isinstance(user_components, dict) or any(
|
| 594 |
not isinstance(k, str) or not isinstance(v, Component)
|