eaglelandsonce commited on
Commit
bb8dd3f
·
verified ·
1 Parent(s): 0addc1c

Update pages/10_Gemini-ChatOnly.py

Browse files
Files changed (1) hide show
  1. pages/10_Gemini-ChatOnly.py +17 -1
pages/10_Gemini-ChatOnly.py CHANGED
@@ -17,9 +17,25 @@ generation_config = genai.GenerationConfig(
17
 
18
  # Safety settings configuration
19
  safety_settings = [
20
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  ]
22
 
 
23
  # Initialize session state for chat history
24
  if 'chat_history' not in st.session_state:
25
  st.session_state['chat_history'] = []
 
17
 
18
  # Safety settings configuration
19
  safety_settings = [
20
+ {
21
+ "category": "HARM_CATEGORY_DANGEROUS_CONTENT",
22
+ "threshold": "BLOCK_NONE",
23
+ },
24
+ {
25
+ "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
26
+ "threshold": "BLOCK_NONE",
27
+ },
28
+ {
29
+ "category": "HARM_CATEGORY_HATE_SPEECH",
30
+ "threshold": "BLOCK_NONE",
31
+ },
32
+ {
33
+ "category": "HARM_CATEGORY_HARASSMENT",
34
+ "threshold": "BLOCK_NONE",
35
+ },
36
  ]
37
 
38
+
39
  # Initialize session state for chat history
40
  if 'chat_history' not in st.session_state:
41
  st.session_state['chat_history'] = []