Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def predict(img, translation_method, font):
|
|
| 21 |
if translation_method == None:
|
| 22 |
translation_method = "google"
|
| 23 |
if font == None:
|
| 24 |
-
font = "fonts/
|
| 25 |
|
| 26 |
results = detect_bubbles(MODEL, img)
|
| 27 |
|
|
@@ -56,11 +56,13 @@ demo = gr.Interface(fn=predict,
|
|
| 56 |
("Bing", "bing")],
|
| 57 |
label="Translation Method",
|
| 58 |
value="google"),
|
| 59 |
-
gr.Dropdown([("
|
|
|
|
| 60 |
("mangati", "fonts/mangati.ttf"),
|
| 61 |
("ariali", "fonts/ariali.ttf")],
|
|
|
|
| 62 |
label="Text Font",
|
| 63 |
-
value="fonts/
|
| 64 |
],
|
| 65 |
outputs=[gr.Image()],
|
| 66 |
examples=EXAMPLE_LIST,
|
|
|
|
| 21 |
if translation_method == None:
|
| 22 |
translation_method = "google"
|
| 23 |
if font == None:
|
| 24 |
+
font = "fonts/WildWordsRoman.ttf"
|
| 25 |
|
| 26 |
results = detect_bubbles(MODEL, img)
|
| 27 |
|
|
|
|
| 56 |
("Bing", "bing")],
|
| 57 |
label="Translation Method",
|
| 58 |
value="google"),
|
| 59 |
+
gr.Dropdown([("Wild Words Roman", "fonts/WildWordsRoman.ttf"),
|
| 60 |
+
("animeace_i", "fonts/animeace_i.ttf"),
|
| 61 |
("mangati", "fonts/mangati.ttf"),
|
| 62 |
("ariali", "fonts/ariali.ttf")],
|
| 63 |
+
("ariali", "fonts/KOMIKAX_.ttf")],
|
| 64 |
label="Text Font",
|
| 65 |
+
value="fonts/WildWordsRoman.ttf")
|
| 66 |
],
|
| 67 |
outputs=[gr.Image()],
|
| 68 |
examples=EXAMPLE_LIST,
|