Skip to content

Commit

Permalink
Merge pull request #8 from moeflow-com/add-gradio-ui
Browse files Browse the repository at this point in the history
Add gradio UI
  • Loading branch information
jokester authored Nov 28, 2024
2 parents 361e0ba + 38b2143 commit 11c8172
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ share/python-wheels/
MANIFEST
.history
.conda_env_created
.gradio
/venv

# Input and Output
Expand Down
12 changes: 0 additions & 12 deletions conda.working.yaml

This file was deleted.

1 change: 1 addition & 0 deletions gradio-multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ async def on_run_button(

if __name__ == "__main__":
demo.queue(api_open=True, max_size=100).launch(
share=False,
debug=True,
server_name="0.0.0.0",
max_file_size=10 * gr.FileSize.MB,
Expand Down
3 changes: 1 addition & 2 deletions manga_translator/gradio/ocr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import manga_translator.textline_merge as textline_merge
import manga_translator.utils.textblock as utils_textblock
from dataclasses import dataclass
from typing import List, Optional
Expand All @@ -9,7 +8,7 @@
# ocr_key="mocr", # XXX: mocr may have different output format
# use_mocr_merge=True,
# device="cpu",
verbose=True,
verbose=False, # True would create temp file
)


Expand Down

0 comments on commit 11c8172

Please sign in to comment.