Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import unicodedata
|
|
6 |
import os
|
7 |
|
8 |
# Set up OpenAI API Key (Replace with your actual key)
|
9 |
-
openai.api_key = "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"
|
10 |
|
11 |
|
12 |
def clean_text(text):
|
@@ -51,7 +51,7 @@ def chatbot(pdf_file, user_question):
|
|
51 |
|
52 |
# Step 4: Send to OpenAI's GPT-3.5
|
53 |
response = openai.ChatCompletion.create(
|
54 |
-
model="gpt-
|
55 |
messages=[{"role": "user", "content": prompt}]
|
56 |
)
|
57 |
|
|
|
6 |
import os
|
7 |
|
8 |
# Set up OpenAI API Key (Replace with your actual key)
|
9 |
+
# openai.api_key = "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"
|
10 |
|
11 |
|
12 |
def clean_text(text):
|
|
|
51 |
|
52 |
# Step 4: Send to OpenAI's GPT-3.5
|
53 |
response = openai.ChatCompletion.create(
|
54 |
+
model="gpt-4o-mini",
|
55 |
messages=[{"role": "user", "content": prompt}]
|
56 |
)
|
57 |
|