siddhartharya commited on
Commit
163ff62
1 Parent(s): 274f663

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -276,7 +276,7 @@ Provide summaries and categories for the following bookmarks:
276
 
277
  # Corrected f-string without backslashes
278
  categories_str = ', '.join([f'"{cat}"' for cat in CATEGORIES])
279
- prompt += f'Categories:\n{categories_str}\n\n'
280
 
281
  prompt += "Format your response as a JSON object where each key is the bookmark URL and the value is another JSON object containing 'summary' and 'category'.\n\n"
282
  prompt += "Example:\n"
@@ -289,7 +289,7 @@ Provide summaries and categories for the following bookmarks:
289
  prompt += "Now, provide the summaries and categories for the bookmarks listed above."
290
 
291
  response = openai.ChatCompletion.create(
292
- model='gpt-4', # Ensure this model is correct and available
293
  messages=[
294
  {"role": "user", "content": prompt}
295
  ],
@@ -718,7 +718,7 @@ Provide a concise and helpful response.
718
  '''
719
 
720
  response = openai.ChatCompletion.create(
721
- model='gpt-4', # Ensure this model is correct and available
722
  messages=[
723
  {"role": "user", "content": prompt}
724
  ],
 
276
 
277
  # Corrected f-string without backslashes
278
  categories_str = ', '.join([f'"{cat}"' for cat in CATEGORIES])
279
+ prompt += f"Categories:\n{categories_str}\n\n"
280
 
281
  prompt += "Format your response as a JSON object where each key is the bookmark URL and the value is another JSON object containing 'summary' and 'category'.\n\n"
282
  prompt += "Example:\n"
 
289
  prompt += "Now, provide the summaries and categories for the bookmarks listed above."
290
 
291
  response = openai.ChatCompletion.create(
292
+ model='llama-3.1-70b-versatile', # Retaining the original model
293
  messages=[
294
  {"role": "user", "content": prompt}
295
  ],
 
718
  '''
719
 
720
  response = openai.ChatCompletion.create(
721
+ model='llama-3.1-70b-versatile', # Retaining the original model
722
  messages=[
723
  {"role": "user", "content": prompt}
724
  ],