Spaces:
Runtime error
Runtime error
Commit
·
95c1ed8
1
Parent(s):
5b512a0
Test
Browse files- Text2image-api.py +3 -4
Text2image-api.py
CHANGED
@@ -30,7 +30,7 @@ app = Flask(__name__)
|
|
30 |
# return jsonify({'service': data})
|
31 |
|
32 |
|
33 |
-
@app.route("/", methods=["POST"])
|
34 |
def generate():
|
35 |
|
36 |
# prompt = request.form['prompt']
|
@@ -77,6 +77,5 @@ def generate():
|
|
77 |
|
78 |
|
79 |
# driver function
|
80 |
-
|
81 |
-
|
82 |
-
# app.run(debug = True)
|
|
|
30 |
# return jsonify({'service': data})
|
31 |
|
32 |
|
33 |
+
# @app.route("/", methods=["POST"])
|
34 |
def generate():
|
35 |
|
36 |
# prompt = request.form['prompt']
|
|
|
77 |
|
78 |
|
79 |
# driver function
|
80 |
+
if __name__ == '__main__':
|
81 |
+
generate()
|
|