Spaces:
Build error
Build error
metadata
title: Language Translator
emoji: π
colorFrom: indigo
colorTo: red
sdk: gradio
sdk_version: 4.37.2
app_file: app.py
pinned: false
license: mit
Language Translator
Introduction
Open AI Translator is the Power tool to translate English to Vietnamese Language. Using the Large Language Model (LLM) like GPT-3.5-turbo, ... for translation
The project is built in Python Which include API by FastAPI and User Interface by Gradio
Getting Started
Environment Setup
- Clone the repository:
git clone [email protected]:spaces/myn0908/Language-Translation
- The project is require: Python 3.9+
- Install dependencies by:
pip install -r requirements.txt
How to Use
- For running with command line in terminal:
For input is text and dest_language
For input is json filepython test_local_translator.py --text 'your input text' --dest_language 'vi'
Noted: You can set your api key with argument --openai_api_key and set the model name with --openai_model or you can use api key and model with my default.python test_local_translator.py --json 'your json file'
- For running API:
uvicorn api:app --reload
- For running User Interface
python app.py