Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,13 +35,11 @@ iface = gr.Interface(
|
|
| 35 |
fn=infer,
|
| 36 |
inputs=gr.Image(label="Input", type="pil"),
|
| 37 |
outputs="text",
|
| 38 |
-
# Removed the 'layout' parameter
|
| 39 |
-
# Removed the 'theme' parameter
|
| 40 |
title="Optical Character Recognition for Japanese Text",
|
| 41 |
description="A simple interface for OCR from Japanese manga",
|
| 42 |
article= "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>. ",
|
| 43 |
-
|
| 44 |
examples=examples,
|
| 45 |
cache_examples=True,
|
| 46 |
)
|
| 47 |
-
iface.launch(server_name="0.0.0.0"
|
|
|
|
| 35 |
fn=infer,
|
| 36 |
inputs=gr.Image(label="Input", type="pil"),
|
| 37 |
outputs="text",
|
|
|
|
|
|
|
| 38 |
title="Optical Character Recognition for Japanese Text",
|
| 39 |
description="A simple interface for OCR from Japanese manga",
|
| 40 |
article= "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>. ",
|
| 41 |
+
flagging_mode="never", # Updated from allow_flagging
|
| 42 |
examples=examples,
|
| 43 |
cache_examples=True,
|
| 44 |
)
|
| 45 |
+
iface.launch(server_name="0.0.0.0") # Removed enable_queue parameter
|