IZERE HIRWA Roger commited on
Commit
f22d3ca
·
1 Parent(s): 4e1bce5
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,6 +29,7 @@ def generate():
29
  return jsonify({"error": "No image uploaded"}), 400
30
 
31
  image = request.files['image']
 
32
  text = request.form.get('text', '')
33
 
34
  if not text.strip():
@@ -73,7 +74,7 @@ def generate():
73
  @app.route('/debug/static')
74
  def debug_static():
75
  static_files = []
76
-
77
  for root, dirs, files in os.walk('static'):
78
  for file in files:
79
  static_files.append(os.path.join(root, file))
 
29
  return jsonify({"error": "No image uploaded"}), 400
30
 
31
  image = request.files['image']
32
+ # text
33
  text = request.form.get('text', '')
34
 
35
  if not text.strip():
 
74
  @app.route('/debug/static')
75
  def debug_static():
76
  static_files = []
77
+
78
  for root, dirs, files in os.walk('static'):
79
  for file in files:
80
  static_files.append(os.path.join(root, file))