Comments (3)
`from typing import List
async def _infer(self, from_lang: str, to_lang: str, queries: List[str]) -> List[str]:
if from_lang == 'auto':
detected_lang = langid.classify('\n'.join(queries))[0]
target_lang = self._map_detected_lang_to_translator(detected_lang)
if target_lang == None:
self.logger.warn('Could not detect language from over all sentence. Will try per sentence.')
else:
from_lang = target_lang
return [self._translate_sentence(from_lang, to_lang, query) for query in queries]
`
this code can work
from manga-image-translator.
List[str] modify to List
this can work
from manga-image-translator.
May I ask if this problem has been resolved? I also encountered the same error,
from manga-image-translator.
Related Issues (20)
- Do I need to use a docker install to host the web server demo? HOT 1
- [Feature Request]: 希望知道官方演示站用的命令
- [Bug]: "After starting with Docker, it prompts: FileNotFoundError." HOT 1
- [Bug]: 本地运行Docker时 会出现FileNotFoundError: /app/result/XXXXX/input.jpg 错误
- [Feature Request]: OCR recognition, recommended GPU configuration.
- ChatGPT does not return all sentences HOT 3
- [Bug]: [ERROR ] module_manager:handleRunTimeException:876 - Failed to set ctd: 'ctd'
- [Bug]: gpt4 unexpected behavior, first index is often blank
- API 调用,每次返回同一个task_id HOT 2
- [Bug]: ERROR: [web_client] ConnectTimeout HOT 1
- [Bug]: 使用第三方api报错 HOT 1
- [Bug]: 找不到input.jpg HOT 2
- [Bug]: 找不到input.jpg HOT 1
- [人工翻译 Manual translatio 接口问题]:
- [Bug]: Some trouble running the script on windows HOT 1
- [Bug]: 找不到input.jpg HOT 4
- [Bug]: colab 上面的chatgpt 無法使用 HOT 1
- [Bug]: gpt 3.5 turbo 不能再使用了? HOT 2
- [Feature Request]: Can multiple GPUs be supported? HOT 4
- [Feature Request]: 后续会整合一些开源的大模型充当翻译软件吗,比如llama3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manga-image-translator.