JUNGU commited on
Commit
109854c
1 Parent(s): e981ebd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,9 +34,10 @@ def extract_and_summarize(image):
34
  ]
35
 
36
  # Call GPT-4 API for summarization
37
- response = openai.ChatCompletion.create(
38
  model="gpt-4o",
39
  messages=prompt,
 
40
  max_tokens=300,
41
  )
42
 
 
34
  ]
35
 
36
  # Call GPT-4 API for summarization
37
+ response = client.chat.completions.create(
38
  model="gpt-4o",
39
  messages=prompt,
40
+ temperature=0.0,
41
  max_tokens=300,
42
  )
43