Update app.py
Browse files
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 |
-
|
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(
|
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"
|