aquibmoin commited on
Commit
abd8ad5
·
verified ·
1 Parent(s): c4bbe45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -421,7 +421,7 @@ def chatbot(user_input, science_objectives="", context="", subdomain="", max_tok
421
 
422
  # Export response to Word
423
  word_doc_path = export_to_word(
424
- response, subdomain, user_input, context,
425
  max_tokens, temperature, top_p, frequency_penalty, presence_penalty
426
  )
427
 
@@ -432,7 +432,7 @@ def chatbot(user_input, science_objectives="", context="", subdomain="", max_tok
432
  data_insights = generate_data_insights(user_input, exoplanet_data)
433
 
434
  # Extract GPT-generated table into DataFrame
435
- extracted_table_df = gpt_response_to_dataframe(response)
436
 
437
  # Combine response and insights
438
  full_response = f"{full_response}\n\nEnd of Response"
 
421
 
422
  # Export response to Word
423
  word_doc_path = export_to_word(
424
+ full_response, subdomain, user_input, context,
425
  max_tokens, temperature, top_p, frequency_penalty, presence_penalty
426
  )
427
 
 
432
  data_insights = generate_data_insights(user_input, exoplanet_data)
433
 
434
  # Extract GPT-generated table into DataFrame
435
+ extracted_table_df = gpt_response_to_dataframe(full_response)
436
 
437
  # Combine response and insights
438
  full_response = f"{full_response}\n\nEnd of Response"