georgescutelnicu commited on
Commit
849ae30
·
verified ·
1 Parent(s): 0940960

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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()