K00B404 commited on
Commit
9267bee
1 Parent(s): 9bc77b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -170,11 +170,11 @@ input_merge_method = gr.Dropdown(label='Merge Method', choices=MERGE_METHODS)
170
  partial_generate_config = partial(generate_config, base_model=input_base_model, merge_method=input_merge_method)
171
 
172
  # Generate config block
173
- gen_config_block = gr.Blocks()
174
- with gen_config_block:
175
- generated_config = gr.Textbox(label='Generated Config', interactive=False)
176
- btn_generate_config = gr.Button('Generate Config', variant='secondary')
177
- btn_generate_config.click(fn=partial_generate_config, inputs=[input_base_model, input_models, input_layer_range], outputs=[generated_config])
178
 
179
 
180
  def merge(yaml_config: str, hf_token: str, repo_name: str) -> Iterable[List[Log]]:
@@ -255,7 +255,10 @@ def merge(yaml_config: str, hf_token: str, repo_name: str) -> Iterable[List[Log]
255
  with gr.Blocks() as demo:
256
  gr.Markdown(MARKDOWN_DESCRIPTION)
257
  with gr.Row():
258
- gen_config_block
 
 
 
259
  with gr.Row():
260
 
261
  filename = gr.Textbox(visible=False, label="filename")
@@ -284,7 +287,7 @@ with gr.Blocks() as demo:
284
  outputs=[config],
285
  )
286
  gr.Markdown(MARKDOWN_ARTICLE)
287
-
288
  button.click(fn=merge, inputs=[config, token, repo_name], outputs=[logs])
289
 
290
 
 
170
  partial_generate_config = partial(generate_config, base_model=input_base_model, merge_method=input_merge_method)
171
 
172
  # Generate config block
173
+ #gen_config_block = gr.Blocks()
174
+ #with gen_config_block:
175
+ # generated_config = gr.Textbox(label='Generated Config', interactive=False)
176
+ # btn_generate_config = gr.Button('Generate Config', variant='secondary')
177
+ # btn_generate_config.click(fn=partial_generate_config, inputs=[input_base_model, input_models, input_layer_range], outputs=[generated_config])
178
 
179
 
180
  def merge(yaml_config: str, hf_token: str, repo_name: str) -> Iterable[List[Log]]:
 
255
  with gr.Blocks() as demo:
256
  gr.Markdown(MARKDOWN_DESCRIPTION)
257
  with gr.Row():
258
+ generated_config = gr.Textbox(label='Generated Config', interactive=False)
259
+ btn_generate_config = gr.Button('Generate Config', variant='secondary')
260
+
261
+
262
  with gr.Row():
263
 
264
  filename = gr.Textbox(visible=False, label="filename")
 
287
  outputs=[config],
288
  )
289
  gr.Markdown(MARKDOWN_ARTICLE)
290
+ btn_generate_config.click(fn=partial_generate_config, inputs=[input_base_model, input_models, input_layer_range], outputs=[generated_config])
291
  button.click(fn=merge, inputs=[config, token, repo_name], outputs=[logs])
292
 
293