Hjgugugjhuhjggg commited on
Commit
e3f7289
·
verified ·
1 Parent(s): 3934084

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -155,9 +155,9 @@ with gr.Blocks() as demo:
155
  filename = gr.Textbox(visible=False, label="filename")
156
  config = gr.Code(language="yaml", lines=10, label="config.yaml")
157
  with gr.Column():
158
- token = gr.Textbox(lines=1, label="HF Write Token", info="https://hf.co/settings/token", type="password", placeholder="Optional. Will upload merged model to MergeKit Community if empty.")
159
- repo_name = gr.Textbox(lines=1, label="Repo name", placeholder="Optional. Will create a random name if empty.")
160
- profile_name = gr.Textbox(lines=1, label="Hugging Face Profile Name", placeholder="Enter your Hugging Face profile name.")
161
  button = gr.Button("Merge", variant="primary")
162
  logs = LogsView(label="Terminal output")
163
  gr.Examples(examples, fn=lambda s: (s,), run_on_click=True, label="Examples", inputs=[filename], outputs=[config])
@@ -165,7 +165,7 @@ with gr.Blocks() as demo:
165
 
166
  button.click(fn=merge, inputs=[config, token, repo_name, profile_name], outputs=[logs])
167
 
168
- @spaces.GPU(enable_queue=True, duration=0)
169
  def launch():
170
  demo.launch(share=True)
171
 
 
155
  filename = gr.Textbox(visible=False, label="filename")
156
  config = gr.Code(language="yaml", lines=10, label="config.yaml")
157
  with gr.Column():
158
+ token = gr.Textbox(lines=1, label="HF Write Token", info="https://hf.co/settings/token", type="password", placeholder="Optional")
159
+ repo_name = gr.Textbox(lines=1, label="Repo name", placeholder="Optional")
160
+ profile_name = gr.Textbox(lines=1, label="Hugging Face Profile Name", placeholder="Enter your HF profile name")
161
  button = gr.Button("Merge", variant="primary")
162
  logs = LogsView(label="Terminal output")
163
  gr.Examples(examples, fn=lambda s: (s,), run_on_click=True, label="Examples", inputs=[filename], outputs=[config])
 
165
 
166
  button.click(fn=merge, inputs=[config, token, repo_name, profile_name], outputs=[logs])
167
 
168
+ @spaces(duration=0)
169
  def launch():
170
  demo.launch(share=True)
171