mmaleki92 commited on
Commit
19aa5b4
·
verified ·
1 Parent(s): 15443d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- allow_flagging='never',
44
  examples=examples,
45
  cache_examples=True,
46
  )
47
- iface.launch(server_name="0.0.0.0", enable_queue=True) # Added server_name for wider access
 
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