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,7 +56,8 @@ 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",
|
|
|
21 |
if translation_method == None:
|
22 |
translation_method = "google"
|
23 |
if font == None:
|
24 |
+
font = "fonts/AnimeAceEspanol-Regular.ttf"
|
25 |
|
26 |
results = detect_bubbles(MODEL, img)
|
27 |
|
|
|
56 |
("Bing", "bing")],
|
57 |
label="Translation Method",
|
58 |
value="google"),
|
59 |
+
gr.Dropdown([("AnimeAceEspanol-Regular", "fonts/AnimeAceEspanol-Regular.ttf"),
|
60 |
+
("Mangabey", "fonts/Mangabey.ttf"),
|
61 |
("mangati", "fonts/mangati.ttf"),
|
62 |
("ariali", "fonts/ariali.ttf")],
|
63 |
label="Text Font",
|