myn0908 commited on
Commit
e3a977f
β€’
1 Parent(s): bb58e08

update metadata readme for build gradio app

Browse files
Files changed (2) hide show
  1. README.md +48 -0
  2. lang_translation_api.py β†’ api.py +0 -0
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Presight GPT
3
+ emoji: πŸš€
4
+ colorFrom: indigo
5
+ colorTo: red
6
+ sdk: gradio
7
+ sdk_version: 4.2.0
8
+ app_file: app.py
9
+ pinned: false
10
+ license: mit
11
+ ---
12
+
13
+ # Language Translator
14
+ ## Introduction
15
+ 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
16
+
17
+ The project is built in Python Which include API by FastAPI and User Interface by Gradio
18
+
19
+ ## Getting Started
20
+ ### Environment Setup
21
+ 1. Clone the repository:
22
+ ```commandline
23
+ git clone git@github.com:TinVo0908/Language-Translator.git'
24
+ ```
25
+ 2. The project is require: Python 3.9+
26
+ 3. Install dependencies by:
27
+ ```
28
+ pip install -r requirements.txt
29
+ ```
30
+ ### How to Use
31
+ 1. For running with command line in terminal:
32
+ For input is text and dest_language
33
+ ```commandline
34
+ python test_local_translator.py --text 'your input text' --dest_language 'vi'
35
+ ```
36
+ For input is json file
37
+ ```commandline
38
+ python test_local_translator.py --json 'your json file'
39
+ ```
40
+ 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.
41
+ 2. For running API:
42
+ ```commandline
43
+ uvicorn api:app --reload
44
+ ```
45
+ 3. For running User Interface
46
+ ```commandline
47
+ python app.py
48
+ ```
lang_translation_api.py β†’ api.py RENAMED
File without changes