Spaces:
Build error
Build error
Emiir
commited on
Commit
·
10f5920
1
Parent(s):
87b9432
Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,6 @@ import emoji
|
|
11 |
|
12 |
text_gen = gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
|
13 |
|
14 |
-
def get_prompts(prompt_text):
|
15 |
-
if prompt_text:
|
16 |
-
return text_gen("dreamlikeart, " + prompt_text)
|
17 |
-
else:
|
18 |
-
return text_gen("")
|
19 |
-
|
20 |
-
|
21 |
proc1 = gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
22 |
|
23 |
|
@@ -36,7 +29,7 @@ queue_threshold = 100
|
|
36 |
|
37 |
|
38 |
def send_it1(prompt_marka,prompt_seri,prompt_model,prompt_yil,proc1=proc1):
|
39 |
-
prompts = f"Brand: {prompt_marka} / Series: {prompt_seri} / Model: {prompt_model} / Year: {prompt_yil} / Show the car in a showroom (studio). Look ahead of us."
|
40 |
|
41 |
while queue.qsize() >= queue_threshold:
|
42 |
time.sleep(2)
|
|
|
11 |
|
12 |
text_gen = gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
proc1 = gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
15 |
|
16 |
|
|
|
29 |
|
30 |
|
31 |
def send_it1(prompt_marka,prompt_seri,prompt_model,prompt_yil,proc1=proc1):
|
32 |
+
prompts = f"dreamlikeart, Brand: {prompt_marka} / Series: {prompt_seri} / Model: {prompt_model} / Year: {prompt_yil} / Show the car in a showroom (studio). Look ahead of us."
|
33 |
|
34 |
while queue.qsize() >= queue_threshold:
|
35 |
time.sleep(2)
|