jesusvilela commited on
Commit
f74bbff
·
verified ·
1 Parent(s): 6b555d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -409,7 +409,7 @@ def initialize_agent_and_tools(force_reinit=False):
409
  model=GEMINI_MODEL_NAME,
410
  google_api_key=GOOGLE_API_KEY,
411
  temperature=0.0,
412
- #safety_settings=llm_safety_settings_corrected_final, # USE THE DICTIONARY WITH INT VALUES FOR BOTH
413
  timeout=120,
414
  convert_system_message_to_human=True
415
  )
@@ -668,4 +668,4 @@ if __name__ == "__main__":
668
 
669
  logger.info(f"Space ID: {os.getenv('SPACE_ID', 'Not Set')}")
670
  logger.info("Gradio Interface launching...")
671
- demo.queue().launch(debug=os.getenv("GRADIO_DEBUG","false").lower()=="true", share=False, max_threads=20)
 
409
  model=GEMINI_MODEL_NAME,
410
  google_api_key=GOOGLE_API_KEY,
411
  temperature=0.0,
412
+ safety_settings=llm_safety_settings_corrected_final, # USE THE DICTIONARY WITH INT VALUES FOR BOTH
413
  timeout=120,
414
  convert_system_message_to_human=True
415
  )
 
668
 
669
  logger.info(f"Space ID: {os.getenv('SPACE_ID', 'Not Set')}")
670
  logger.info("Gradio Interface launching...")
671
+ demo.queue().launch(debug=os.getenv("GRADIO_DEBUG","false").lower()=="true", share=False, max_threads=20)