b3xxf21f commited on
Commit
d4f2f5f
1 Parent(s): 76a1eb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -163,7 +163,9 @@ def image_to_wd14_tags(image:Image.Image, link:str, model_name: str, threshold:
163
  output_text = ', '.join(text_items)
164
 
165
  return ratings, output_text, filtered_tags
166
-
 
 
167
  @app.route('/api/tag_image', methods=['POST'])
168
  def tag_image():
169
  data = request.get_json()
 
163
  output_text = ', '.join(text_items)
164
 
165
  return ratings, output_text, filtered_tags
166
+
167
+ app = Flask(__name__)
168
+
169
  @app.route('/api/tag_image', methods=['POST'])
170
  def tag_image():
171
  data = request.get_json()