NihalGazi commited on
Commit
fc2575a
·
verified ·
1 Parent(s): fa00a76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -5,11 +5,10 @@ from flask import Flask, Response, request
5
 
6
  app = Flask(__name__)
7
 
8
- # Read the Pollinations URL template from the secret "FLUX"
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("Missing FLUX secret (Pollinations URL template)")
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():