Spaces:
Sleeping
Sleeping
apehex commited on
Commit ·
126b243
1
Parent(s): 8c053ad
Move the master key to the main tab + remove useless cols
Browse filesMake the master key directly visible so that users are aware that it is empty (IE very easy to guess)
app.py
CHANGED
|
@@ -87,6 +87,8 @@ def create_layout(intro: str=INTRO) -> dict:
|
|
| 87 |
with gradio.Tabs():
|
| 88 |
with gradio.Tab('Manager') as __main_tab:
|
| 89 |
__fields.update({'main_tab': __main_tab})
|
|
|
|
|
|
|
| 90 |
with gradio.Row(equal_height=True):
|
| 91 |
__fields.update(create_inputs_block())
|
| 92 |
with gradio.Row(equal_height=True):
|
|
@@ -95,13 +97,10 @@ def create_layout(intro: str=INTRO) -> dict:
|
|
| 95 |
__fields.update(create_actions_block())
|
| 96 |
with gradio.Tab('Settings') as __settings_tab:
|
| 97 |
__fields.update({'settings_tab': __settings_tab})
|
| 98 |
-
with gradio.
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
__fields.update(create_vocabulary_block())
|
| 103 |
-
with gradio.Row(equal_height=True):
|
| 104 |
-
__fields.update(create_sampling_block())
|
| 105 |
return __fields
|
| 106 |
|
| 107 |
# EVENTS #######################################################################
|
|
|
|
| 87 |
with gradio.Tabs():
|
| 88 |
with gradio.Tab('Manager') as __main_tab:
|
| 89 |
__fields.update({'main_tab': __main_tab})
|
| 90 |
+
with gradio.Row(equal_height=True):
|
| 91 |
+
__fields.update(create_master_block())
|
| 92 |
with gradio.Row(equal_height=True):
|
| 93 |
__fields.update(create_inputs_block())
|
| 94 |
with gradio.Row(equal_height=True):
|
|
|
|
| 97 |
__fields.update(create_actions_block())
|
| 98 |
with gradio.Tab('Settings') as __settings_tab:
|
| 99 |
__fields.update({'settings_tab': __settings_tab})
|
| 100 |
+
with gradio.Row(equal_height=True):
|
| 101 |
+
__fields.update(create_vocabulary_block())
|
| 102 |
+
with gradio.Row(equal_height=True):
|
| 103 |
+
__fields.update(create_sampling_block())
|
|
|
|
|
|
|
|
|
|
| 104 |
return __fields
|
| 105 |
|
| 106 |
# EVENTS #######################################################################
|