Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from utils.t2i import t2i_gen
|
| 3 |
+
|
| 4 |
+
with gr.Blocks(
|
| 5 |
+
title="🪄 LayerDiffuse - Flux version ☔",
|
| 6 |
+
theme=gr.themes.Base(
|
| 7 |
+
font = [gr.themes.GoogleFont("Teachers"), "Arial", "sans-serif"],
|
| 8 |
+
)
|
| 9 |
+
) as demo:
|
| 10 |
+
prompt = gr.Text(
|
| 11 |
+
label="Prompt",
|
| 12 |
+
info="Your prompt here",
|
| 13 |
+
placeholder="E.g: glass bottle, high quality"
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
if __name__ == "__main__":
|
| 17 |
+
demo.queue(max_size=20).launch(show_error=True)
|