Spaces:
Runtime error
Runtime error
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 |
|
|
@@ -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/
|
| 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,
|