Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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-
|
| 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}"}
|