Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 149 commits into
base: feedback
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
e2a9e42
Setting up GitHub Classroom Feedback
github-classroom[bot] Feb 18, 2024
f6a5f2e
ver. 0.0.0
simson0524 Mar 8, 2024
9deca6b
Update Metaphor_Gen
rlarlgh96 Mar 8, 2024
ce9a9bb
Merge pull request #2 from boostcampaitech6/rlarlgh96
gunwoo45954 Mar 8, 2024
09067a6
파일구조 재설정
simson0524 Mar 9, 2024
569c4c2
upload: template
Sanggi123 Mar 9, 2024
abcee34
add AI_Poet
gunwoo45954 Mar 9, 2024
b405e7b
Merge pull request #3 from boostcampaitech6/gunwoo
gunwoo45954 Mar 9, 2024
85c90fe
beta of FastAPI
simson0524 Mar 9, 2024
1f56152
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
simson0524 Mar 9, 2024
821c646
DALLE api 적용
simson0524 Mar 10, 2024
5b890d5
DALLE API 적용 완료
simson0524 Mar 10, 2024
da7d7dd
upload: Multi-Page Application
Sanggi123 Mar 11, 2024
3dbe5f0
Merge pull request #4 from boostcampaitech6/sanggi
Sanggi123 Mar 11, 2024
e76c383
DALLE API 완료
simson0524 Mar 11, 2024
60374bf
Merge branch 'jaehyeok' into main
simson0524 Mar 11, 2024
d42c4df
update: back_button & re_generate_button update
Sanggi123 Mar 11, 2024
caeb904
Merge pull request #5 from boostcampaitech6/sanggi
Sanggi123 Mar 11, 2024
9309ed2
preprocess poem_dataset
gunwoo45954 Mar 12, 2024
9a1ea7a
Merge pull request #6 from boostcampaitech6/gunwoo
gunwoo45954 Mar 12, 2024
b09065a
Update app.py and index.html
rlarlgh96 Mar 12, 2024
76b5bd0
add train dataset
gunwoo45954 Mar 14, 2024
16e0163
use huggingface hub model
gunwoo45954 Mar 14, 2024
bb729a6
fix gitignore
gunwoo45954 Mar 14, 2024
61d7f3b
fix dataset name
gunwoo45954 Mar 14, 2024
7849646
update: sakura theme
Sanggi123 Mar 14, 2024
5a72f64
Merge pull request #7 from boostcampaitech6/sanggi
Sanggi123 Mar 14, 2024
2b560ae
update: spa + sanggi
Sanggi123 Mar 14, 2024
8216242
Merge pull request #8 from boostcampaitech6/sanggi
Sanggi123 Mar 14, 2024
c123446
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
gunwoo45954 Mar 15, 2024
bc973ef
poem_dataset에 "num_lines" column 추가
gunwoo45954 Mar 15, 2024
99a0fe6
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
rlarlgh96 Mar 15, 2024
57e43e7
Merge pull request #9 from boostcampaitech6/rlarlgh96
rlarlgh96 Mar 15, 2024
39964c7
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
gunwoo45954 Mar 15, 2024
0d134f0
Update schemas.py
simson0524 Mar 16, 2024
f570555
Update schemas.py
simson0524 Mar 16, 2024
2ad47f5
Update schemas.py
simson0524 Mar 16, 2024
faee283
Update schemas.py
simson0524 Mar 16, 2024
a97f8bf
update app.py
simson0524 Mar 17, 2024
773d26c
Merge pull request #10 from boostcampaitech6/jaehyeok2
simson0524 Mar 17, 2024
00f3bcc
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
gunwoo45954 Mar 17, 2024
a440f42
poem dataset 수정
gunwoo45954 Mar 17, 2024
5e097b5
bos, eos token 추가 후 학습진행
gunwoo45954 Mar 17, 2024
84724dd
Merge pull request #11 from boostcampaitech6/gunwoo
gunwoo45954 Mar 17, 2024
cb869bf
연 구분하는 special token을 사용해 학습
gunwoo45954 Mar 18, 2024
2e751b6
Merge pull request #12 from boostcampaitech6/gunwoo
gunwoo45954 Mar 18, 2024
9d516a4
token yaml파일에 넣음
simson0524 Mar 19, 2024
b175470
Implement upload function
rlarlgh96 Mar 19, 2024
8cb312c
Merge branch 'main' into rlarlgh96
rlarlgh96 Mar 19, 2024
bdeba30
Merge pull request #13 from boostcampaitech6/rlarlgh96
rlarlgh96 Mar 19, 2024
adaed44
Update app.py
rlarlgh96 Mar 19, 2024
6c72021
Merge branch 'main' into jaehyeok4
simson0524 Mar 19, 2024
b504b8f
Merge pull request #14 from boostcampaitech6/jaehyeok4
simson0524 Mar 19, 2024
707f6b2
인스타그램 자동게시
simson0524 Mar 19, 2024
e0f1247
update: html & css
Sanggi123 Mar 19, 2024
8f13851
Merge pull request #15 from boostcampaitech6/sanggi
Sanggi123 Mar 19, 2024
1181aea
update: index.html
Sanggi123 Mar 19, 2024
e844a6c
Merge pull request #16 from boostcampaitech6/sanggi
Sanggi123 Mar 19, 2024
4327be7
update:
Sanggi123 Mar 19, 2024
fba06a5
Merge pull request #17 from boostcampaitech6/sanggi
Sanggi123 Mar 19, 2024
fe56632
Update train data
rlarlgh96 Mar 19, 2024
94858d4
Merge branch 'rlarlgh96' of https://github.com/boostcampaitech6/level…
rlarlgh96 Mar 19, 2024
5395b48
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
rlarlgh96 Mar 19, 2024
1030811
인스타그램 자동게시 최종
simson0524 Mar 19, 2024
624063d
인스타그램 자동게시 최종최종
simson0524 Mar 19, 2024
ab115bf
인스타api 최종진짜최종
simson0524 Mar 19, 2024
9621da4
Merge pull request #18 from boostcampaitech6/jaehyeok5
simson0524 Mar 19, 2024
c1047cf
영상촬영한거
simson0524 Mar 19, 2024
5478cb3
add QLoRA train
gunwoo45954 Mar 19, 2024
365c055
fix qlora_train.py
gunwoo45954 Mar 19, 2024
22157b4
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
rlarlgh96 Mar 20, 2024
cb7815f
<yun> -> [YUN]으로 교체 후 학습진행
gunwoo45954 Mar 20, 2024
d01945f
qlora_train에 따른 requirements.txt 수정
gunwoo45954 Mar 20, 2024
527a765
fix qlora_train
gunwoo45954 Mar 20, 2024
9dffb62
주석 수정
gunwoo45954 Mar 20, 2024
75612a8
update: progress reButton
Sanggi123 Mar 20, 2024
2a8abaa
update: progress reButton
Sanggi123 Mar 20, 2024
05980e8
Update app.py 시 생성 -> 시로 이미지 생성
simson0524 Mar 20, 2024
a93c049
Update app.py and dependency
rlarlgh96 Mar 20, 2024
6951787
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
rlarlgh96 Mar 20, 2024
9ff6ea2
pull하기 전 push
gunwoo45954 Mar 21, 2024
e336b51
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
gunwoo45954 Mar 21, 2024
a08dd0f
Merge pull request #19 from boostcampaitech6/gunwoo2
gunwoo45954 Mar 21, 2024
881157e
update: progress upload
Sanggi123 Mar 22, 2024
bc9fe4a
polyglot-ko 모델 실험
gunwoo45954 Mar 22, 2024
33775fa
fix dynamic padding
gunwoo45954 Mar 22, 2024
734d614
Update Metaphor_Gen
rlarlgh96 Mar 23, 2024
fbeef81
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
rlarlgh96 Mar 23, 2024
c2f9983
시 생성 모델 code refactoring
gunwoo45954 Mar 24, 2024
5ab721c
Update Metaphor_Gen model
rlarlgh96 Mar 24, 2024
7484fad
Merge pull request #20 from boostcampaitech6/rlarlgh96
rlarlgh96 Mar 24, 2024
f1bd85c
Update app.py
rlarlgh96 Mar 24, 2024
6fc6f1a
Merge pull request #21 from boostcampaitech6/rlarlgh96
rlarlgh96 Mar 24, 2024
5cdf360
push files before pull main
gunwoo45954 Mar 24, 2024
81ecd69
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
gunwoo45954 Mar 24, 2024
c5404c4
update
Sanggi123 Mar 24, 2024
841ae7d
Merge remote-tracking branch 'origin/sanggi' into sanggi2
Sanggi123 Mar 25, 2024
6d2d7e9
Merge pull request #22 from boostcampaitech6/sanggi2
Sanggi123 Mar 25, 2024
9f5bc28
push files before pull main
gunwoo45954 Mar 25, 2024
833d1df
Merge branch 'main' of https://github.com/boostcampaitech6/level2-3-n…
gunwoo45954 Mar 25, 2024
ee7a0f6
Merge pull request #23 from boostcampaitech6/gunwoo2
gunwoo45954 Mar 25, 2024
6c75e4d
Update index.html
rlarlgh96 Mar 25, 2024
87dd2e4
Merge pull request #24 from boostcampaitech6/rlarlgh96
rlarlgh96 Mar 25, 2024
2e5ddc4
Update app.py
rlarlgh96 Mar 25, 2024
644abfd
Update index.html
rlarlgh96 Mar 26, 2024
e52d653
Merge pull request #25 from boostcampaitech6/rlarlgh96
rlarlgh96 Mar 26, 2024
02324be
잘못된 인스타 아이디 입력 시 예외처리
simson0524 Mar 26, 2024
c79e0ba
Merge branch 'main' into jaehyeok6
simson0524 Mar 26, 2024
0dc0c14
Merge pull request #26 from boostcampaitech6/jaehyeok6
simson0524 Mar 26, 2024
cc98e21
Update app.py & index.html
rlarlgh96 Mar 26, 2024
e38f35b
Update app.py
rlarlgh96 Mar 26, 2024
6dba125
Update index.html
rlarlgh96 Mar 26, 2024
8ce3f3a
Merge pull request #27 from boostcampaitech6/rlarlgh96
rlarlgh96 Mar 26, 2024
7e521ed
README.md 작성
gunwoo45954 Mar 26, 2024
a5b0b92
시 생성 generate 인자 조정
gunwoo45954 Mar 26, 2024
206e0cd
Merge pull request #28 from boostcampaitech6/gunwoo2
gunwoo45954 Mar 26, 2024
5fe1ad0
Update app.py
simson0524 Mar 26, 2024
f230a1f
Update index.html
rlarlgh96 Mar 26, 2024
c4d57f6
Merge pull request #29 from boostcampaitech6/rlarlgh96
rlarlgh96 Mar 26, 2024
7d46489
Update app.py
simson0524 Mar 26, 2024
e59febf
Update app.py
simson0524 Mar 26, 2024
54cf760
Update .gitignore
simson0524 Mar 26, 2024
ed86ec4
최종조치ㅚㅈㅊ외
simson0524 Mar 26, 2024
f14488a
Update README.md
rlarlgh96 Mar 28, 2024
5025ee6
Update README.md
rlarlgh96 Mar 28, 2024
089e436
Update README.md
rlarlgh96 Mar 28, 2024
a7a1a25
Update README.md
rlarlgh96 Mar 28, 2024
626e4eb
Update README.md
rlarlgh96 Mar 28, 2024
0ccf469
Update README.md
rlarlgh96 Apr 1, 2024
0b84998
Update README.md
rlarlgh96 Apr 1, 2024
8ebcf26
Update README.md
rlarlgh96 Apr 1, 2024
f239355
Update README.md
rlarlgh96 Apr 1, 2024
5e588b3
Update README.md
rlarlgh96 Apr 1, 2024
723942a
Update README.md
rlarlgh96 Apr 1, 2024
092af40
Update README.md
rlarlgh96 Apr 1, 2024
3923331
Update README.md
rlarlgh96 Apr 1, 2024
a0eede1
Update README.md
rlarlgh96 Apr 1, 2024
ae75410
Update README.md
rlarlgh96 Apr 1, 2024
f31d1d1
Update README.md
rlarlgh96 Apr 1, 2024
0d04d2e
Update README.md
rlarlgh96 Apr 1, 2024
7a0fa6e
Update README.md
rlarlgh96 Apr 1, 2024
0d87b6d
Update README.md
rlarlgh96 Apr 1, 2024
316a021
Update README.md
rlarlgh96 Apr 1, 2024
8fc7500
Update README.md
rlarlgh96 Apr 1, 2024
a8fcccf
Update README.md
rlarlgh96 Apr 1, 2024
60e9e0b
Update README.md
rlarlgh96 Apr 4, 2024
1a754c1
Update README.md
rlarlgh96 Apr 11, 2024
6c0d63b
Update README.md
rlarlgh96 Apr 11, 2024
a92b1b5
Update README.md
rlarlgh96 Apr 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update app.py 시 생성 -> 시로 이미지 생성
  • Loading branch information
simson0524 authored Mar 20, 2024
commit 05980e89785a9b3ff1b953051238265767c27264
22 changes: 12 additions & 10 deletions Application/app.py
Original file line number Diff line number Diff line change
@@ -67,16 +67,7 @@ async def generate_poem(request: PoemRequest):

line = request.line + '\n'

# 이미지 생성
# OpenAI API_KEY 설정
API_KEY = tokens.openai.api_key
client = OpenAI(api_key=API_KEY)
response = client.images.generate(model='dall-e-3',
prompt=line,
size='1024x1024',
quality='standard',
n=1)
image_url = response.data[0].url


# 시 생성
input_ids = tokenizer.encode(line, add_special_tokens=True, return_tensors='pt')
@@ -92,6 +83,17 @@ async def generate_poem(request: PoemRequest):
)
poem = tokenizer.decode(output[0].tolist(), skip_special_tokens=True)

# 이미지 생성
# OpenAI API_KEY 설정
API_KEY = tokens.openai.api_key
client = OpenAI(api_key=API_KEY)
response = client.images.generate(model='dall-e-3',
prompt=poem,
size='1024x1024',
quality='standard',
n=1)
image_url = response.data[0].url

return PoemResponse(poem=poem,
image_url=image_url)