kmuthudurai commited on
Commit
6f3b6aa
·
verified ·
1 Parent(s): a31de01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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. please ensure json format header level and lineitem level. should not provide nested one."
66
  try:
67
  response = openai.ChatCompletion.create(
68
  model="gpt-4o-mini",