Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,13 @@ from queue import Queue
|
|
| 9 |
from threading import Thread
|
| 10 |
import emoji
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
| 13 |
|
| 14 |
def restart_script_periodically():
|
|
@@ -102,7 +109,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 102 |
).style(
|
| 103 |
container=False,
|
| 104 |
)
|
| 105 |
-
|
| 106 |
|
| 107 |
|
| 108 |
with gr.Row(variant="compact"):
|
|
|
|
| 9 |
from threading import Thread
|
| 10 |
import emoji
|
| 11 |
|
| 12 |
+
|
| 13 |
+
text_gen=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
|
| 14 |
+
def get_prompts(prompt_text):
|
| 15 |
+
if prompt_text:
|
| 16 |
+
return text_gen("dreamlikeart, " + prompt_text)
|
| 17 |
+
else:
|
| 18 |
+
return text_gen("")
|
| 19 |
proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
| 20 |
|
| 21 |
def restart_script_periodically():
|
|
|
|
| 109 |
).style(
|
| 110 |
container=False,
|
| 111 |
)
|
| 112 |
+
see_prompts = gr.Button("✨ Magic Prompt ✨").style(full_width=False)
|
| 113 |
|
| 114 |
|
| 115 |
with gr.Row(variant="compact"):
|