Rooc commited on
Commit
7560aa0
·
verified ·
1 Parent(s): b547acf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,8 +1,5 @@
1
  import gradio as gr
2
 
3
- # 加载模型
4
- model = gr.load("models/black-forest-labs/FLUX.1-dev").launch()
5
-
6
  # 定义更多的示例
7
  examples = [
8
  ["A beautiful sunset over a calm ocean"],
@@ -25,4 +22,7 @@ demo = gr.Interface(
25
  examples=examples,
26
  title="FLUX.1 [dev] Image Generation",
27
  description="Enter a text prompt to generate an image using FLUX.1 [dev]."
28
- )
 
 
 
 
1
  import gradio as gr
2
 
 
 
 
3
  # 定义更多的示例
4
  examples = [
5
  ["A beautiful sunset over a calm ocean"],
 
22
  examples=examples,
23
  title="FLUX.1 [dev] Image Generation",
24
  description="Enter a text prompt to generate an image using FLUX.1 [dev]."
25
+ )
26
+
27
+ # 加载模型
28
+ model = gr.load("models/black-forest-labs/FLUX.1-dev").launch()