JUNGU commited on
Commit
9d42771
ยท
verified ยท
1 Parent(s): 538050d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -25,6 +25,8 @@ def extract_and_summarize(image):
25
  # Prepare the prompt for GPT-4
26
  #์—ฌ๊ธฐ ์ด๋ฏธ์ง€๋กœ ๋œ ๋ฌธ์„œ๊ฐ€ ์žˆ์–ด. ๋ฌธ์„œ๋ฅผ ๋ณด๊ณ  ๋‚ด์šฉ์„ 3์ค„๋กœ ์š”์•ฝํ•ด. ์ œ์ถœํ•ด์•ผํ•˜๋Š” ๋ฌธ์„œ์˜ ๊ฒฝ์šฐ ์ œ์ถœ ๊ธฐ๊ฐ„๊ณผ ๋ฐฉ๋ฒ•์„ ๋ฐ˜๋“œ์‹œ ํฌํ•จํ•ด
27
  # Summarize the image document in 3 lines. If submission is needed, include the deadline, method, and link. Output in Korean
 
 
28
  prompt = [
29
  {
30
  "role": "system",
@@ -33,7 +35,7 @@ def extract_and_summarize(image):
33
  {
34
  "role": "user",
35
  "content": [
36
- {"type": "text", "text": "Summarize the image document in 3 lines. If submission is needed, include the deadline, method, and link. Output in Korean"},
37
  {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{image_base64}"}}
38
  ]
39
  }
 
25
  # Prepare the prompt for GPT-4
26
  #์—ฌ๊ธฐ ์ด๋ฏธ์ง€๋กœ ๋œ ๋ฌธ์„œ๊ฐ€ ์žˆ์–ด. ๋ฌธ์„œ๋ฅผ ๋ณด๊ณ  ๋‚ด์šฉ์„ 3์ค„๋กœ ์š”์•ฝํ•ด. ์ œ์ถœํ•ด์•ผํ•˜๋Š” ๋ฌธ์„œ์˜ ๊ฒฝ์šฐ ์ œ์ถœ ๊ธฐ๊ฐ„๊ณผ ๋ฐฉ๋ฒ•์„ ๋ฐ˜๋“œ์‹œ ํฌํ•จํ•ด
27
  # Summarize the image document in 3 lines. If submission is needed, include the deadline, method, and link. Output in Korean
28
+ # Summarize the image document in 3 lines. If submission details are included, add the deadline, method, and link. If there is no link, omit the link information. Output in Korean.
29
+
30
  prompt = [
31
  {
32
  "role": "system",
 
35
  {
36
  "role": "user",
37
  "content": [
38
+ {"type": "text", "text": "Summarize the image document in 3 lines. If submission details are included, add the deadline, method, and link. If there is no link, omit the link information. Output in Korean."},
39
  {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{image_base64}"}}
40
  ]
41
  }