Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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
|
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
|
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 |
|