Spaces:
Running
Running
Update app.py
Browse files
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
|
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 |
}
|