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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
 
3
  # 加载模型
4
- model = gr.load("models/black-forest-labs/FLUX.1-dev")
5
 
6
  # 定义更多的示例
7
  examples = [
@@ -25,6 +25,4 @@ 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
- )
29
-
30
- gr.load("models/black-forest-labs/FLUX.1-dev").launch()
 
1
  import gradio as gr
2
 
3
  # 加载模型
4
+ model = gr.load("models/black-forest-labs/FLUX.1-dev").launch()
5
 
6
  # 定义更多的示例
7
  examples = [
 
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
+ )