Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import numpy as np
|
2 |
import gradio as gr
|
3 |
import requests
|
|
|
4 |
import time
|
5 |
import json
|
6 |
import base64
|
@@ -332,7 +333,8 @@ with gr.Blocks(css=css) as demo:
|
|
332 |
with gr.Tab("Lora"):
|
333 |
loralist = prodia_client.list_loras()
|
334 |
for lora in loralist:
|
335 |
-
gr.Button(lora)
|
|
|
336 |
|
337 |
with gr.Column(scale=2):
|
338 |
image_output = gr.Gallery(value=["https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png"], preview=True)
|
|
|
1 |
import numpy as np
|
2 |
import gradio as gr
|
3 |
import requests
|
4 |
+
import random
|
5 |
import time
|
6 |
import json
|
7 |
import base64
|
|
|
333 |
with gr.Tab("Lora"):
|
334 |
loralist = prodia_client.list_loras()
|
335 |
for lora in loralist:
|
336 |
+
random_btn = gr.Button(lora)
|
337 |
+
random_btn.click(random.randint, inputs=[0, 10], outputs=prompt)
|
338 |
|
339 |
with gr.Column(scale=2):
|
340 |
image_output = gr.Gallery(value=["https://images.prodia.xyz/8ede1a7c-c0ee-4ded-987d-6ffed35fc477.png"], preview=True)
|