NeoPy commited on
Commit
92315c3
·
verified ·
1 Parent(s): a9ed33a

Update main/app/tabs/inference/inference.py

Browse files
main/app/tabs/inference/inference.py CHANGED
@@ -13,7 +13,7 @@ def inference_tabs():
13
  with gr.Row():
14
  with gr.Column():
15
  with gr.Accordion(translations["model_accordion"], open=True):
16
- with gr.Row():
17
  model_pth = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)
18
  model_index = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)
19
  refesh = gr.Button(translations["refesh"])
@@ -309,7 +309,7 @@ def inference_tabs():
309
  with gr.Row():
310
  gr.Markdown(translations["convert_text_markdown_2"])
311
  with gr.Accordion(translations["model_accordion"], open=True):
312
- with gr.Row():
313
  model_pth0 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)
314
  model_index0 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)
315
  refesh1 = gr.Button(translations["refesh"])
@@ -459,12 +459,12 @@ def inference_tabs():
459
  with gr.Row():
460
  with gr.Column():
461
  with gr.Accordion(translations["model_accordion"] + " 1", open=True):
462
- with gr.Row():
463
  model_pth2 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)
464
  model_index2 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)
465
  refesh2 = gr.Button(translations["refesh"])
466
  with gr.Accordion(translations["model_accordion"] + " 2", open=True):
467
- with gr.Row():
468
  model_pth3 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)
469
  model_index3 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)
470
  refesh3 = gr.Button(translations["refesh"])
 
13
  with gr.Row():
14
  with gr.Column():
15
  with gr.Accordion(translations["model_accordion"], open=True):
16
+ with gr.Row(equal_height=True):
17
  model_pth = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)
18
  model_index = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)
19
  refesh = gr.Button(translations["refesh"])
 
309
  with gr.Row():
310
  gr.Markdown(translations["convert_text_markdown_2"])
311
  with gr.Accordion(translations["model_accordion"], open=True):
312
+ with gr.Row(equal_height=True):
313
  model_pth0 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)
314
  model_index0 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)
315
  refesh1 = gr.Button(translations["refesh"])
 
459
  with gr.Row():
460
  with gr.Column():
461
  with gr.Accordion(translations["model_accordion"] + " 1", open=True):
462
+ with gr.Row(equal_height=True):
463
  model_pth2 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)
464
  model_index2 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)
465
  refesh2 = gr.Button(translations["refesh"])
466
  with gr.Accordion(translations["model_accordion"] + " 2", open=True):
467
+ with gr.Row(equal_height=True):
468
  model_pth3 = gr.Dropdown(label=translations["model_name"], choices=model_name, value=model_name[0] if len(model_name) >= 1 else "", interactive=True, allow_custom_value=True)
469
  model_index3 = gr.Dropdown(label=translations["index_path"], choices=index_path, value=index_path[0] if len(index_path) >= 1 else "", interactive=True, allow_custom_value=True)
470
  refesh3 = gr.Button(translations["refesh"])