Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,11 +5,10 @@ from flask import Flask, Response, request
|
|
| 5 |
|
| 6 |
app = Flask(__name__)
|
| 7 |
|
| 8 |
-
|
| 9 |
-
# e.g. "https://image.pollinations.ai/prompt/[prompt]?width=[w]&height=[h]&seed=[seed]&nologo=true&enhance=true"
|
| 10 |
URL_TEMPLATE = os.environ.get("FLUX")
|
| 11 |
if URL_TEMPLATE is None:
|
| 12 |
-
raise RuntimeError("
|
| 13 |
|
| 14 |
@app.route("/generate", methods=["GET"])
|
| 15 |
def generate_image():
|
|
|
|
| 5 |
|
| 6 |
app = Flask(__name__)
|
| 7 |
|
| 8 |
+
|
|
|
|
| 9 |
URL_TEMPLATE = os.environ.get("FLUX")
|
| 10 |
if URL_TEMPLATE is None:
|
| 11 |
+
raise RuntimeError("ERR-SCRT")
|
| 12 |
|
| 13 |
@app.route("/generate", methods=["GET"])
|
| 14 |
def generate_image():
|