Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,11 @@ DESCRIPTION = "Translate text in manga bubbles!"
|
|
18 |
|
19 |
|
20 |
def predict(img, translation_method, font):
|
|
|
|
|
|
|
|
|
|
|
21 |
results = detect_bubbles(MODEL, img)
|
22 |
|
23 |
manga_translator = MangaTranslator()
|
|
|
18 |
|
19 |
|
20 |
def predict(img, translation_method, font):
|
21 |
+
if translation_method == None:
|
22 |
+
translation_method = "google"
|
23 |
+
if font == None:
|
24 |
+
font = "fonts/animeace_i.ttf""
|
25 |
+
|
26 |
results = detect_bubbles(MODEL, img)
|
27 |
|
28 |
manga_translator = MangaTranslator()
|