Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def fetch_file_from_s3_file(file_key):
|
|
| 62 |
|
| 63 |
# Function to summarize text using OpenAI GPT
|
| 64 |
def summarize_text(text):
|
| 65 |
-
system_prompt = "You are a helpful assistant that summarizes extracted OCR text into JSON format always.
|
| 66 |
try:
|
| 67 |
response = openai.ChatCompletion.create(
|
| 68 |
model="gpt-4o-mini",
|
|
|
|
| 62 |
|
| 63 |
# Function to summarize text using OpenAI GPT
|
| 64 |
def summarize_text(text):
|
| 65 |
+
system_prompt = "You are a helpful assistant that summarizes extracted OCR text into JSON format always."
|
| 66 |
try:
|
| 67 |
response = openai.ChatCompletion.create(
|
| 68 |
model="gpt-4o-mini",
|