@@ -169,7 +169,6 @@ def main():
169
169
170
170
# Setting options for Open AI
171
171
api_key = None
172
- st .toast (f"Session state AI Option: { st .session_state .ai_option } " , icon = "✅" )
173
172
if st .session_state .ai_option == "Open AI" :
174
173
with st .expander ("Open AI Settings" ):
175
174
try :
@@ -214,7 +213,6 @@ def main():
214
213
file_path = general_utils .save_uploaded_file_temp (st .session_state .uploaded_file ) # Save the uploaded file
215
214
if file_path :
216
215
credentials_file_path = file_path
217
- #st.toast(f"Credentials file uploaded {credentials_file_path}", icon="✅")
218
216
else :
219
217
st .toast ("Failed to save the uploaded file." , icon = "❌" )
220
218
@@ -445,11 +443,7 @@ def main():
445
443
st .code (st .session_state .output , language = st .session_state .code_language .lower ())
446
444
447
445
# Display the price of the generated code.
448
- #st.toast(f"Generated code: {st.session_state.generated_code}", icon="✅")
449
- #st.toast(f"Display Cost/API: {st.session_state.display_cost}", icon="✅")
450
-
451
446
if st .session_state .generated_code and st .session_state .display_cost :
452
- st .toast (f"AI Option Inside: { st .session_state .ai_option } " , icon = "✅" )
453
447
if st .session_state .ai_option == "Open AI" :
454
448
selected_model = st .session_state ["openai" ]["model_name" ]
455
449
if selected_model == "gpt-3" :
@@ -488,7 +482,6 @@ def main():
488
482
489
483
elif st .session_state .ai_option == "Gemini AI" :
490
484
selected_model = st .session_state ["gemini" ]["model_name" ]
491
- st .toast (f"Selected model: { selected_model } " , icon = "✅" )
492
485
493
486
if selected_model == "gemini-pro" :
494
487
cost_per_input_char = 0.00025 # Cost per 1K input characters for online requests
0 commit comments