Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|