Spaces:
Sleeping
Sleeping
Commit
·
dbf912a
1
Parent(s):
4b35341
V2
Browse files
app.py
CHANGED
@@ -25,12 +25,15 @@ custom_html = """
|
|
25 |
</html>
|
26 |
"""
|
27 |
|
28 |
-
#
|
29 |
-
gr.Interface(
|
30 |
fn=model,
|
31 |
-
inputs=gr.
|
32 |
-
outputs=gr.
|
33 |
title="D&D Themed Gradio Space",
|
34 |
description="Generate images using the Flux-Midjourney-Mix2-LoRA model.",
|
35 |
css=custom_html
|
36 |
-
)
|
|
|
|
|
|
|
|
25 |
</html>
|
26 |
"""
|
27 |
|
28 |
+
# Define the Gradio interface
|
29 |
+
iface = gr.Interface(
|
30 |
fn=model,
|
31 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter your prompt here..."),
|
32 |
+
outputs=gr.Image(type="pil"),
|
33 |
title="D&D Themed Gradio Space",
|
34 |
description="Generate images using the Flux-Midjourney-Mix2-LoRA model.",
|
35 |
css=custom_html
|
36 |
+
)
|
37 |
+
|
38 |
+
# Launch the Gradio interface
|
39 |
+
iface.launch()
|