Spaces:
Runtime error
Runtime error
Update pages/8_Gemini-doublequery.py
Browse files
pages/8_Gemini-doublequery.py
CHANGED
@@ -80,7 +80,9 @@ def send_message():
|
|
80 |
final_chat_history_str = ai_writer_system_prompt + "\n" + initial_response_text
|
81 |
|
82 |
# Second model generation call
|
83 |
-
final_response = model.generate_content([{"role": "model", "parts": [{"text": final_chat_history_str}]}])
|
|
|
|
|
84 |
final_response_text = final_response.text if hasattr(final_response, "text") else "No response text found."
|
85 |
|
86 |
if final_response_text:
|
|
|
80 |
final_chat_history_str = ai_writer_system_prompt + "\n" + initial_response_text
|
81 |
|
82 |
# Second model generation call
|
83 |
+
#final_response = model.generate_content([{"role": "model", "parts": [{"text": final_chat_history_str}]}])
|
84 |
+
# Corrected second model generation call
|
85 |
+
final_response = model.generate_content([{"role": "user", "parts": [{"text": final_chat_history_str}]}])
|
86 |
final_response_text = final_response.text if hasattr(final_response, "text") else "No response text found."
|
87 |
|
88 |
if final_response_text:
|