Emiir commited on
Commit
5397f8c
·
1 Parent(s): 10b0498

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -27,13 +27,14 @@ restart_thread.start()
27
  queue = Queue()
28
  queue_threshold = 100
29
 
30
- def send_it1(prompt_marka,prompt_seri,prompt_model,prompt_yil,proc1=proc1):
31
  #prompts = f"dreamlikeart, Brand: {prompt_marka} / Series: {prompt_seri} / Model: {prompt_model} / Year: {prompt_yil} / Show the car in a showroom (studio). Introduce the car from front perspectives."
32
  prompts = f"""
33
  dreamlikeart, Brand: {prompt_marka} /
34
  Series: {prompt_seri} /
35
  Model: {prompt_model} /
36
  Year: {prompt_yil} /
 
37
  Show the car in a showroom (studio). Make a photo with front perspectives."""
38
 
39
  while queue.qsize() >= queue_threshold:
@@ -82,12 +83,22 @@ with gr.Blocks(css='style.css') as demo:
82
  )
83
  run = gr.Button("Oluştur").style(full_width=False)
84
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  with gr.Row():
87
  with gr.Row():
88
  output1 = gr.Image(label="Dreamlike Diffusion 1.0", show_label=False)
89
 
90
- run.click(send_it1, inputs=[prompt_marka,prompt_seri,prompt_model,prompt_yil], outputs=[output1],api_name="car_image_draw")
91
  with gr.Row():
92
  gr.HTML(
93
 
 
27
  queue = Queue()
28
  queue_threshold = 100
29
 
30
+ def send_it1(prompt_marka,prompt_seri,prompt_model,prompt_yil,prompt_car,proc1=proc1):
31
  #prompts = f"dreamlikeart, Brand: {prompt_marka} / Series: {prompt_seri} / Model: {prompt_model} / Year: {prompt_yil} / Show the car in a showroom (studio). Introduce the car from front perspectives."
32
  prompts = f"""
33
  dreamlikeart, Brand: {prompt_marka} /
34
  Series: {prompt_seri} /
35
  Model: {prompt_model} /
36
  Year: {prompt_yil} /
37
+ Car Type: {prompt_car} /
38
  Show the car in a showroom (studio). Make a photo with front perspectives."""
39
 
40
  while queue.qsize() >= queue_threshold:
 
83
  )
84
  run = gr.Button("Oluştur").style(full_width=False)
85
 
86
+ prompt_car = gr.Textbox(
87
+ label="Enter your prompt",
88
+ show_label=False,
89
+ max_lines=2,
90
+ placeholder="Aracınızın Tipini Giriniz. (Örneğin, 2012,2020)",
91
+ ).style(
92
+ container=False,
93
+ )
94
+ run = gr.Button("Oluştur").style(full_width=False)
95
+
96
 
97
  with gr.Row():
98
  with gr.Row():
99
  output1 = gr.Image(label="Dreamlike Diffusion 1.0", show_label=False)
100
 
101
+ run.click(send_it1, inputs=[prompt_marka,prompt_seri,prompt_model,prompt_yil,prompt_car], outputs=[output1],api_name="car_image_draw")
102
  with gr.Row():
103
  gr.HTML(
104