Spaces:
Build error
Build error
fixing
Browse files
README.md
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
# Language Translator
|
2 |
-
## Introduction
|
3 |
-
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
|
4 |
-
|
5 |
-
The project is built in Python Which include API by FastAPI and User Interface by Gradio
|
6 |
-
|
7 |
-
## Getting Started
|
8 |
-
### Environment Setup
|
9 |
-
1. Clone the repository:
|
10 |
-
```commandline
|
11 |
-
git clone git@github.com:TinVo0908/Language-Translator.git'
|
12 |
-
```
|
13 |
-
2. The project is require: Python 3.9+
|
14 |
-
3. Install dependencies by:
|
15 |
-
```
|
16 |
-
pip install -r requirements.txt
|
17 |
-
```
|
18 |
-
### How to Use
|
19 |
-
1. For running with command line in terminal:
|
20 |
-
For input is text and dest_language
|
21 |
-
```commandline
|
22 |
-
python test_local_translator.py --text 'your input text' --dest_language 'vi'
|
23 |
-
```
|
24 |
-
For input is json file
|
25 |
-
```commandline
|
26 |
-
python test_local_translator.py --json 'your json file'
|
27 |
-
```
|
28 |
-
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.
|
29 |
-
2. For running API:
|
30 |
-
```commandline
|
31 |
-
uvicorn api:app --reload
|
32 |
-
```
|
33 |
-
3. For running User Interface
|
34 |
-
```commandline
|
35 |
-
python app.py
|
36 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|