maggidev commited on
Commit
c1a63b7
·
verified ·
1 Parent(s): 33d63f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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/animeace_i.ttf"
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([("animeace_i", "fonts/animeace_i.ttf"),
 
60
  ("mangati", "fonts/mangati.ttf"),
61
  ("ariali", "fonts/ariali.ttf")],
 
62
  label="Text Font",
63
- value="fonts/animeace_i.ttf")
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,