Spaces:
Runtime error
Runtime error
Commit
•
7cf99f8
1
Parent(s):
182990e
Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ def generate(prompt):
|
|
174 |
image = pipe(prompt).images[0]
|
175 |
return(image)
|
176 |
|
177 |
-
def
|
178 |
pass
|
179 |
|
180 |
with gr.Blocks(css=css) as demo:
|
@@ -267,5 +267,5 @@ with gr.Blocks(css=css) as demo:
|
|
267 |
result = gr.File(label="Download the uploaded models (zip file are diffusers weights, *.ckpt are CompVis/AUTOMATIC1111 weights)", visible=True)
|
268 |
train_btn.click(fn=train, inputs=is_visible+concept_collection+file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[result, try_your_model, push_to_hub])
|
269 |
generate_button.click(fn=generate, inputs=prompt, outputs=result)
|
270 |
-
push_button.click(fn=
|
271 |
demo.launch()
|
|
|
174 |
image = pipe(prompt).images[0]
|
175 |
return(image)
|
176 |
|
177 |
+
def push(path):
|
178 |
pass
|
179 |
|
180 |
with gr.Blocks(css=css) as demo:
|
|
|
267 |
result = gr.File(label="Download the uploaded models (zip file are diffusers weights, *.ckpt are CompVis/AUTOMATIC1111 weights)", visible=True)
|
268 |
train_btn.click(fn=train, inputs=is_visible+concept_collection+file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[result, try_your_model, push_to_hub])
|
269 |
generate_button.click(fn=generate, inputs=prompt, outputs=result)
|
270 |
+
push_button.click(fn=push, inputs=model_repo_tag, outputs=[])
|
271 |
demo.launch()
|