Spaces:
Runtime error
Runtime error
Update app.py
Browse files97 unmodified lines9899100101102103104105229 unmodified lines33533633733833934034134297 unmodified linestext = text[:-4]return textdef random_get():return str(random.randint(1, 10))def create_grid(image_urls):# Download first image to get size229 unmodified lineswith gr.Tab("Lora"):loralist = prodia_client.list_loras()for lora in loralist:random_btn = gr.Button(lora)random_btn.click(random_get, outputs=prompt)with gr.Column(scale=2):image_output = gr.Gallery(value=["https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png"], preview=True)97 unmodified lines9899100101102103104105229 unmodified lines33533633733833934034134297 unmodified linestext = text[:-4]return textdef place_lora(lorabtn):return lorabtndef create_grid(image_urls):# Download first image to get size229 unmodified lineswith gr.Tab("Lora"):loralist = prodia_client.list_loras()for lora in loralist:lora_btn = gr.Button(lora)lora_btn.click(place_lora, inputs=[lora_btn], outputs=prompt)with gr.Column(scale=2):image_output = gr.Gallery(value=["https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png"], preview=True)
app.py+4-4