Spaces:
Running
Running
maamokun
commited on
Commit
·
5e9fa98
1
Parent(s):
90ae7eb
Update main.py
Browse files
main.py
CHANGED
@@ -15,7 +15,7 @@ BASE_FLIPPED_IMAGE = Image.open("images/base-gd-flipped.png")
|
|
15 |
BASE_IMAGE = Image.open("images/base.png")
|
16 |
MPLUS_FONT = ImageFont.truetype("fonts/MPLUSRounded1c-Regular.ttf", size=16)
|
17 |
branding = "Change this to the text of your choice"
|
18 |
-
|
19 |
|
20 |
def draw_text(
|
21 |
im, ofs, string, font="fonts/MPLUSRounded1c-Regular.ttf", size=16,
|
@@ -221,7 +221,7 @@ def reverse():
|
|
221 |
|
222 |
@app.route("/", methods=["GET"])
|
223 |
def main():
|
224 |
-
return 'API URL:
|
225 |
|
226 |
|
227 |
if __name__ == "__main__":
|
|
|
15 |
BASE_IMAGE = Image.open("images/base.png")
|
16 |
MPLUS_FONT = ImageFont.truetype("fonts/MPLUSRounded1c-Regular.ttf", size=16)
|
17 |
branding = "Change this to the text of your choice"
|
18 |
+
BaseURL = "https://api.example.com/"
|
19 |
|
20 |
def draw_text(
|
21 |
im, ofs, string, font="fonts/MPLUSRounded1c-Regular.ttf", size=16,
|
|
|
221 |
|
222 |
@app.route("/", methods=["GET"])
|
223 |
def main():
|
224 |
+
return 'API URL: ' + BaseURL + '<br><br>Endpoints<br>/original Original B&W MiaQ image<br>/colour MiaQ image with coloured icon<br>/reverse MiaQ image with flipped icon position<br><br>Query Parameters<br>name: Username<br>tag: Tag<br>id: User ID<br>icon: Icon URL<br>content: Message Content<br><br>Host your own API here! (https://github.com/maamokun/miq-api)<br>Original code from Taka005 (https://github.com/Taka005/miq)'
|
225 |
|
226 |
|
227 |
if __name__ == "__main__":
|