vkumartr commited on
Commit
8e49c5d
·
verified ·
1 Parent(s): 0099a82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -129,11 +129,11 @@ This JSON format will be used to store and manage invoices in a structured and u
129
  messages=[
130
  {"role": "system", "content": system_prompt},
131
  {"role": "user", "content": f"{text}"}
132
- ],
133
  temperature=0.5,
134
  max_tokens=16384
135
  )
136
- content = response.choices[0].message.content.strip()
137
  print("Before content:", content)
138
  cleaned_content = re.sub(r'^.*```json\n', '', content) # Remove '```json\n' at the beginning
139
  cleaned_content = re.sub(r'\n```$', '', cleaned_content) # Remove '\n```' at the end
 
129
  messages=[
130
  {"role": "system", "content": system_prompt},
131
  {"role": "user", "content": f"{text}"}
132
+ ],
133
  temperature=0.5,
134
  max_tokens=16384
135
  )
136
+ content = response.choices[0].message.content.strip()
137
  print("Before content:", content)
138
  cleaned_content = re.sub(r'^.*```json\n', '', content) # Remove '```json\n' at the beginning
139
  cleaned_content = re.sub(r'\n```$', '', cleaned_content) # Remove '\n```' at the end