Skip to content

zard1152/chat-gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Start project

clone project_name to /var/www/html

server {
    listen 80 ;
    server_name localhost;
    root /var/www/html;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
}
}

install requirement:

pip3 install flask googletrans wsgiref pyyaml

change api_key use following command:

sed -i "s/api_key:.*/api_key: {key}/g" /var/www/html/config.yaml

python3 /var/www/html/back_end.py