nikos99n commited on
Commit
0d1a7d8
·
verified ·
1 Parent(s): bcf1ca1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -52,7 +52,7 @@ if "embeddings_model" not in st.session_state:
52
  # We will use the all-MiniLM-L6-v2 model for embeddings
53
  st.session_state['embeddings_model'] = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
54
 
55
- my_system_instructions = "You are a helpful assistant. Be brief and concise. Provide your answers in 100 words or less."
56
 
57
  first_message = "Hello, how can I help you today?"
58
 
@@ -104,17 +104,17 @@ The user agrees to indemnify and hold harmless the developers of the Software fr
104
  By using the Software, you agree to the terms and conditions of the disclaimer.""")
105
 
106
  # Add a selectbox for model selection
107
- model_list_all = [ 'mistralai/Mistral-7B-Instruct-v0.3',
108
- 'Qwen/Qwen2.5-72B-Instruct',
109
- 'HuggingFaceH4/zephyr-7b-beta']
110
- if os.getenv("GOOGLE_API_KEY"):
111
- model_list_all.append('gemini-2.5-flash-preview-05-20')
112
- if os.getenv("OPENAI_API_KEY"):
113
- model_list_all.append('gpt-4.1-nano-2025-04-14')
114
- st.selectbox("Select the model to use:",
115
- model_list_all,
116
- key="my_llm_model",
117
- on_change=update_llm_model)
118
 
119
  # Add a text are for the system instructions
120
  st.text_area(label="Please enter your system instructions here:", value=my_system_instructions, height=80, key="my_system_instructions", on_change=delete_chat_messages)
 
52
  # We will use the all-MiniLM-L6-v2 model for embeddings
53
  st.session_state['embeddings_model'] = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
54
 
55
+ my_system_instructions = "You are a helpful assistant. Be brief and concise. Clasify given text as FAKE or REAL based on the given context in 100 words or less."
56
 
57
  first_message = "Hello, how can I help you today?"
58
 
 
104
  By using the Software, you agree to the terms and conditions of the disclaimer.""")
105
 
106
  # Add a selectbox for model selection
107
+ # model_list_all = [ 'mistralai/Mistral-7B-Instruct-v0.3',
108
+ # 'Qwen/Qwen2.5-72B-Instruct',
109
+ # 'HuggingFaceH4/zephyr-7b-beta']
110
+ # if os.getenv("GOOGLE_API_KEY"):
111
+ # model_list_all.append('gemini-2.5-flash-preview-05-20')
112
+ # if os.getenv("OPENAI_API_KEY"):
113
+ # model_list_all.append('gpt-4.1-nano-2025-04-14')
114
+ # st.selectbox("Select the model to use:",
115
+ # model_list_all,
116
+ # key="my_llm_model",
117
+ # on_change=update_llm_model)
118
 
119
  # Add a text are for the system instructions
120
  st.text_area(label="Please enter your system instructions here:", value=my_system_instructions, height=80, key="my_system_instructions", on_change=delete_chat_messages)