WatchOutForMike commited on
Commit
dbf912a
·
1 Parent(s): 4b35341
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -25,12 +25,15 @@ custom_html = """
25
  </html>
26
  """
27
 
28
- # Launch the Gradio interface with custom HTML and CSS
29
- gr.Interface(
30
  fn=model,
31
- inputs=gr.inputs.Textbox(lines=2, placeholder="Enter your prompt here..."),
32
- outputs=gr.outputs.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
- ).launch()
 
 
 
 
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()