Update app.py
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ def download_file_from_google_drive(file_id):
|
|
195 |
@st.cache_data
|
196 |
def load_datasets():
|
197 |
"""Load the dataset from Google Drive."""
|
198 |
-
dataset_file_id = "
|
199 |
|
200 |
try:
|
201 |
with st.spinner('Loading dataset...'):
|
@@ -213,7 +213,7 @@ def load_datasets():
|
|
213 |
@st.cache_resource
|
214 |
def load_model_and_encodings():
|
215 |
"""Load model from Google Drive and create encodings."""
|
216 |
-
model_file_id = "
|
217 |
|
218 |
try:
|
219 |
# Show loading message
|
@@ -456,7 +456,7 @@ def generate_gpt_response(prompt, dataset):
|
|
456 |
return f"I found some information in our dataset about {make.title()} {model.title() if model else ''}. Please see the details above."
|
457 |
|
458 |
# If no match is found, fall back to GPT response
|
459 |
-
openai.api_key = "sk-proj-
|
460 |
system_message = {
|
461 |
"role": "system",
|
462 |
"content": (
|
|
|
195 |
@st.cache_data
|
196 |
def load_datasets():
|
197 |
"""Load the dataset from Google Drive."""
|
198 |
+
dataset_file_id = "17dj7yW22YsIfp-tvXQFCitKmLFw5IuAv"
|
199 |
|
200 |
try:
|
201 |
with st.spinner('Loading dataset...'):
|
|
|
213 |
@st.cache_resource
|
214 |
def load_model_and_encodings():
|
215 |
"""Load model from Google Drive and create encodings."""
|
216 |
+
model_file_id = "1ynnVEH7rmAjfe-jH8GOEmTJc6ml8dTi_"
|
217 |
|
218 |
try:
|
219 |
# Show loading message
|
|
|
456 |
return f"I found some information in our dataset about {make.title()} {model.title() if model else ''}. Please see the details above."
|
457 |
|
458 |
# If no match is found, fall back to GPT response
|
459 |
+
openai.api_key = "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"
|
460 |
system_message = {
|
461 |
"role": "system",
|
462 |
"content": (
|