heksskhd commited on
Commit
20599dc
·
verified ·
1 Parent(s): d641001

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
 
@@ -58,9 +58,10 @@ demo = gr.Interface(fn=predict,
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/Mangabey.ttf"
25
 
26
  results = detect_bubbles(MODEL, img)
27
 
 
58
  value="google"),
59
  gr.Dropdown([("animeace_i", "fonts/animeace_i.ttf"),
60
  ("mangati", "fonts/mangati.ttf"),
61
+ ("ariali", "fonts/Mangabey.ttf")
62
  ("ariali", "fonts/ariali.ttf")],
63
  label="Text Font",
64
+ value="fonts/Mangabey.ttf")
65
  ],
66
  outputs=[gr.Image()],
67
  examples=EXAMPLE_LIST,