Spaces:
Running
Running
Update app.py
Browse files
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()
|