Spaces:
Build error
Build error
Emiir
commited on
Commit
·
d731e54
1
Parent(s):
12a716d
Update app.py
Browse files
app.py
CHANGED
@@ -36,10 +36,12 @@ queue_threshold = 100
|
|
36 |
|
37 |
|
38 |
def send_it1(inputs, proc1=proc1):
|
|
|
|
|
39 |
while queue.qsize() >= queue_threshold:
|
40 |
time.sleep(2)
|
41 |
-
queue.put(
|
42 |
-
output1 = proc1(
|
43 |
return output1
|
44 |
|
45 |
with gr.Blocks(css='style.css') as demo:
|
@@ -81,14 +83,13 @@ with gr.Blocks(css='style.css') as demo:
|
|
81 |
container=False,
|
82 |
)
|
83 |
run = gr.Button("Oluştur").style(full_width=False)
|
84 |
-
prompts = f"Brand: {prompt_marka} / Series: {prompt_seri} / Model: {prompt_model} / Year: {prompt_yil}"
|
85 |
|
86 |
|
87 |
with gr.Row():
|
88 |
with gr.Row():
|
89 |
output1 = gr.Image(label="Dreamlike Diffusion 1.0", show_label=False)
|
90 |
|
91 |
-
run.click(send_it1, inputs=[
|
92 |
with gr.Row():
|
93 |
gr.HTML(
|
94 |
|
|
|
36 |
|
37 |
|
38 |
def send_it1(inputs, proc1=proc1):
|
39 |
+
prompts = f"Brand: {inputs[0]} / Series: {inputs[1]} / Model: {inputs[2]} / Year: {inputs[3]}"
|
40 |
+
|
41 |
while queue.qsize() >= queue_threshold:
|
42 |
time.sleep(2)
|
43 |
+
queue.put(prompts)
|
44 |
+
output1 = proc1(prompts)
|
45 |
return output1
|
46 |
|
47 |
with gr.Blocks(css='style.css') as demo:
|
|
|
83 |
container=False,
|
84 |
)
|
85 |
run = gr.Button("Oluştur").style(full_width=False)
|
|
|
86 |
|
87 |
|
88 |
with gr.Row():
|
89 |
with gr.Row():
|
90 |
output1 = gr.Image(label="Dreamlike Diffusion 1.0", show_label=False)
|
91 |
|
92 |
+
run.click(send_it1, inputs=[prompt_marka,prompt_seri,prompt_model,prompt_yil], outputs=[output1])
|
93 |
with gr.Row():
|
94 |
gr.HTML(
|
95 |
|