Cipher29 commited on
Commit
81334ca
·
verified ·
1 Parent(s): 0c6c0b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = "1emG-BQ3-x4xsMAGMEznkh1ACdlAj5Dn1"
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 = "1wKixkdW2pVKEpJW-N1QIyKUr2nYirU7I"
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 = "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" # Ensure the API key is set
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": (