Spaces:
Building
Building
Taka005
commited on
Commit
·
8685b28
1
Parent(s):
b641f61
Update main.py
Browse files
main.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
from PIL import Image, ImageDraw, ImageFont, ImageEnhance
|
2 |
from pilmoji import Pilmoji
|
3 |
-
from
|
4 |
-
from fastapi.responses import Response
|
5 |
import textwrap
|
6 |
import requests
|
7 |
import warnings
|
@@ -170,11 +169,8 @@ def reversemake(name, tag, id, content, icon):
|
|
170 |
file.seek(0)
|
171 |
return file
|
172 |
|
173 |
-
|
174 |
-
|
175 |
app = Flask(__name__)
|
176 |
|
177 |
-
|
178 |
@app.route("/original", methods=["GET"])
|
179 |
def original():
|
180 |
res = make(
|
|
|
1 |
from PIL import Image, ImageDraw, ImageFont, ImageEnhance
|
2 |
from pilmoji import Pilmoji
|
3 |
+
from flask import Flask, request, send_file
|
|
|
4 |
import textwrap
|
5 |
import requests
|
6 |
import warnings
|
|
|
169 |
file.seek(0)
|
170 |
return file
|
171 |
|
|
|
|
|
172 |
app = Flask(__name__)
|
173 |
|
|
|
174 |
@app.route("/original", methods=["GET"])
|
175 |
def original():
|
176 |
res = make(
|