jasvir-singh1021 commited on
Commit
0becbbe
·
verified ·
1 Parent(s): 30691a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ if st.button("🚀 Ask") and uploaded_files and question and api_key:
67
  try:
68
  openai.api_key = api_key
69
  response = openai.ChatCompletion.create(
70
- model="gpt-4",
71
  messages=[
72
  {"role": "system", "content": "You are a helpful assistant that answers questions based on uploaded documents."},
73
  {"role": "user", "content": f"DOCUMENT:\n{combined_text[:6000]}\n\nQUESTION:\n{question}"}
 
67
  try:
68
  openai.api_key = api_key
69
  response = openai.ChatCompletion.create(
70
+ model="gpt-3.5-turbo", # ✅ Updated model
71
  messages=[
72
  {"role": "system", "content": "You are a helpful assistant that answers questions based on uploaded documents."},
73
  {"role": "user", "content": f"DOCUMENT:\n{combined_text[:6000]}\n\nQUESTION:\n{question}"}