Spaces:
Running
Running
Sebastiankay
commited on
Commit
•
581885a
1
Parent(s):
ea80f6b
Update app.py
Browse files
app.py
CHANGED
@@ -52,13 +52,15 @@ custom_head = f"""
|
|
52 |
<link rel="manifest" href="file=_res/assets/favicons/site.webmanifest">
|
53 |
"""
|
54 |
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
60 |
title = "Bilder Builder"
|
61 |
|
|
|
62 |
def get_gallery_images(dirpath):
|
63 |
gallery_images = [dirpath + "/" + s for s in os.listdir(dirpath) if os.path.isfile(os.path.join(dirpath, s))]
|
64 |
gallery_images.sort(key=lambda s: os.path.getmtime(s), reverse=True)
|
@@ -295,4 +297,4 @@ with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, titl
|
|
295 |
enhance_prompt_button.click(fn=groq_enhance_process, inputs=[text_prompt], outputs=[text_prompt], show_api=False)
|
296 |
random_prompt_button.click(fn=groq_enhance_process, inputs=None, outputs=[text_prompt], show_api=False)
|
297 |
# MARK: Gradio LAUNCH
|
298 |
-
demo.launch()
|
|
|
52 |
<link rel="manifest" href="file=_res/assets/favicons/site.webmanifest">
|
53 |
"""
|
54 |
|
55 |
+
theme = gr.themes.Soft(
|
56 |
+
# primary_hue="orange",
|
57 |
+
radius_size="sm",
|
58 |
+
neutral_hue=gr.themes.Color(c100="#a6adc8", c200="#9399b2", c300="#7f849c", c400="#6c7086", c50="#cdd6f4", c500="#585b70", c600="#45475a", c700="#313244", c800="#1e1e2e", c900="#181825", c950="#11111b"),
|
59 |
+
)
|
60 |
+
|
61 |
title = "Bilder Builder"
|
62 |
|
63 |
+
# MARK: GET PREV. IMAGES
|
64 |
def get_gallery_images(dirpath):
|
65 |
gallery_images = [dirpath + "/" + s for s in os.listdir(dirpath) if os.path.isfile(os.path.join(dirpath, s))]
|
66 |
gallery_images.sort(key=lambda s: os.path.getmtime(s), reverse=True)
|
|
|
297 |
enhance_prompt_button.click(fn=groq_enhance_process, inputs=[text_prompt], outputs=[text_prompt], show_api=False)
|
298 |
random_prompt_button.click(fn=groq_enhance_process, inputs=None, outputs=[text_prompt], show_api=False)
|
299 |
# MARK: Gradio LAUNCH
|
300 |
+
demo.launch(show_api=False)
|