Skip to content

jinhyukbae/ai26

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI_26th PlAYDATA Bootcamp Final Project

230518_ENVIROMENT SETTING

  1. Install this git (git clone)

  2. use python venvs

  • C:\venvs
  • C:\venvs> python -m venv myproject
  1. put it in myproject.cmd and activate

  • @echo off
  • cd C:\ai26\myproject
  • set FLASK_APP=pybo
  • set FLASK_DEBUG=true
  • set APP_CONFIG_FILE=C:\ai26\myproject\config\development.py
  • C:\venvs\myproject\Scripts\activate

  1. that's it! have a nice day!

This Project was made by Flask API

2023-04-14 Added a Flask file that includes features like diary writing, notices, public diary, and login/sign-up (Chaewon)
2023-04-17 (Shared with all) Added grammar correction to diary writing, incomplete tag creation (sentence summarizing) for diary content, modified the form of public diary.
2023-04-19 (for Sangjun, Jinhyuk) Uploaded 'myproject' on GitHub for sharing. Cleaned up the folder. (Chaewon)
2023-04-24 (for all to share)
  • (Resolved) "Truncation was not explicitly activated but max_length is provided a specific value, please use truncation=True to explicitly truncate examples to max length. Defaulting to 'longest_first' truncation strategy. If you encode pairs of sequences (GLUE-style) with the tokenizer you can select this strategy more precisely by providing a specific strategy to truncation."
    Issue related to grammar.py: When 'Review+Save' is clicked, the sentences do not all come out in grammar-checked state, and about 50% are omitted.
    Assuming it's a problem with max_length, truncation.
    Sharing as the error hasn't been resolved yet. (Chaewon)
2023-04-26 (for all to share) Code worked on until 04-25 has been deleted due to an overwrite. Recovering member information modification feature and diary grammar check feature.
2023-04-26 + Added public diary sorting feature
2023-04-27 (for all to share) Member information modification feature completed
2023-04-28 Paraphrases feature error fixed (+ close button)
2023-05-04 Experiment

Amazon Lightsail: Ubuntu free version Lightsail fixed IP address: 43.200.159.39 Unable to accept Flask

"killed"

image

Even with an Ubuntu that has twice the CPU, it stops for 20 minutes

image

AWS EC2: t2.micro (free version) (Ubuntu) CPU usage rate over 99% and unable to accept Flask

I think may be torch, transformer, torch library

"killed"

image

2023-05-08 Experiment A

Attempt to use Lightsail 2GB

stop

image Unable to proceed after 100% of pytorch_model.bin

2023-05-09 Experiment B

Attempt to use Lightsail 4GB ($20 version) image

"killed"

  • The Gunicorn process that is currently running continues to display a message that the Worker process has been terminated along with the "CRITICAL WORKER TIMEOUT" message. These messages can occur when the Worker process does not respond or cannot complete the task within a certain time.

  • Typically, this problem can occur when the processing time of the web application is too long. In this case, the problem can be solved by optimizing the code, separating tasks that take a long time to process into background tasks, or adjusting the Gunicorn settings to increase the number of Worker processes or adjust the request wait time (timeout).

  • Therefore, in this case, you need to adjust the Gunicorn settings or analyze the application code to identify the cause and solve it.

Modifications on 2023-05-09

  • Changed the order of the titles in the navbar and sidebar: Notice, User Manual, Public Diary, Diary Writing

Move to Docker

image

Successfully opened the homepage in Docker

image

230511 Docker test

Unable to access from unknown sources

ex) 502 bad gateway, 504 gateway timeout broadcast

image

230512 Docker record

image

Change : config.py to config directory

"init.py" code modify

EWS_diary initial version server environment available

EWS_diary 230518_Mobile UI confirm

  • device : samsung Galaxy Note_20

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published