shukdevdattaEX commited on
Commit
dfc2805
Β·
verified Β·
1 Parent(s): ba15419

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -149,8 +149,7 @@ class CreativeAgenticAI:
149
  if not system_prompt:
150
  if self.model == "openai/gpt-oss-20b":
151
  # Simple, direct system prompt for Chutes model
152
- system_prompt = """You are a helpful, knowledgeable AI assistant. Provide direct, clear, and informative responses to user questions. Be detailed but thorough. Do not include internal reasoning or commentary - just give the answer the user is looking for. The answer must be always completed and also cite the source links for the informations."""
153
-
154
  else:
155
  # Enhanced system prompt for Groq models with search capabilities
156
  citation_instruction = """
@@ -160,7 +159,8 @@ IMPORTANT: When you search the web and find information, you MUST:
160
  3. Show which specific websites you used for each claim
161
  4. At the end of your response, provide a "Sources Used" section with all the links
162
  5. Be transparent about which information comes from which source
163
- """
 
164
  domain_context = ""
165
  if include_domains and self._supports_web_search():
166
  safe_domains = [str(d) for d in include_domains if d]
@@ -700,7 +700,7 @@ def create_gradio_app():
700
  """)
701
 
702
  with gr.Group():
703
- with gr.Accordion("πŸ” IMPORTANT - Enhanced Search Capabilities!", open=False, elem_id="neuroscope-accordion"):
704
  gr.Markdown("""
705
  <div class="search-info">
706
  <h3>πŸš€ NEW: Multiple Search Types Available!</h3>
@@ -996,7 +996,7 @@ def create_gradio_app():
996
  outputs=[chatbot]
997
  )
998
 
999
- with gr.Accordion("πŸš€ About This Enhanced NeuroScope AI", open=False, elem_id="neuroscope-accordion"):
1000
  gr.Markdown("""
1001
  **Enhanced Creative Agentic AI Chat Tool** with dual API support:
1002
 
 
149
  if not system_prompt:
150
  if self.model == "openai/gpt-oss-20b":
151
  # Simple, direct system prompt for Chutes model
152
+ system_prompt = """You are a helpful, knowledgeable AI assistant. Provide direct, clear, and informative responses to user questions. Be concise but thorough. Do not include internal reasoning or commentary - just give the answer the user is looking for. Please also cite the source urls from where you got the informations."""
 
153
  else:
154
  # Enhanced system prompt for Groq models with search capabilities
155
  citation_instruction = """
 
159
  3. Show which specific websites you used for each claim
160
  4. At the end of your response, provide a "Sources Used" section with all the links
161
  5. Be transparent about which information comes from which source
162
+ """
163
+
164
  domain_context = ""
165
  if include_domains and self._supports_web_search():
166
  safe_domains = [str(d) for d in include_domains if d]
 
700
  """)
701
 
702
  with gr.Group():
703
+ with gr.Accordion("πŸ” IMPORTANT - Enhanced Search Capabilities!", open=True, elem_id="neuroscope-accordion"):
704
  gr.Markdown("""
705
  <div class="search-info">
706
  <h3>πŸš€ NEW: Multiple Search Types Available!</h3>
 
996
  outputs=[chatbot]
997
  )
998
 
999
+ with gr.Accordion("πŸš€ About This Enhanced NeuroScope AI", open=True, elem_id="neuroscope-accordion"):
1000
  gr.Markdown("""
1001
  **Enhanced Creative Agentic AI Chat Tool** with dual API support:
1002