Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -316,8 +316,8 @@ def create_gradio_app():
|
|
316 |
- π€ AI capabilities (AI)
|
317 |
- β‘ Precision (Scope implies focused, targeted results)
|
318 |
""")
|
319 |
-
|
320 |
-
with gr.Accordion("π IMPORTANT !!!", open=False):
|
321 |
gr.Markdown("""
|
322 |
When **no domains are specified**, NeuroScope AI operates with unrestricted web search capabilities, allowing the compound models to autonomously search across the entire internet to find the most relevant and up-to-date information to answer your questions - essentially giving the AI complete freedom to use its agentic tools and search any website it deems helpful. When **domains are specified** (either include or exclude lists), you're essentially putting the AI on a leash - if you specify "include domains" like "arxiv.org, *.edu", the AI can ONLY search those academic sources, making it laser-focused on scholarly content, while "exclude domains" like "wikipedia.org, reddit.com" tells the AI to search everywhere EXCEPT those sites, filtering out potentially unreliable sources. The **π Custom System Prompt** feature allows you to completely override the AI's default personality and behavior - instead of the default creative assistant, you could make it act like a professional business consultant, a coding mentor, a creative writer, or even a specific character, essentially giving you the power to reshape the AI's entire conversational style and expertise focus with a single prompt change.
|
323 |
""")
|
@@ -375,7 +375,7 @@ def create_gradio_app():
|
|
375 |
clear_btn = gr.Button("ποΈ Clear", variant="secondary")
|
376 |
|
377 |
# Advanced Settings
|
378 |
-
with gr.Accordion("βοΈ Advanced Settings", open=False):
|
379 |
with gr.Row():
|
380 |
temperature = gr.Slider(
|
381 |
minimum=0.0,
|
@@ -402,7 +402,7 @@ def create_gradio_app():
|
|
402 |
)
|
403 |
|
404 |
# Domain Filtering Section
|
405 |
-
with gr.Accordion("π Domain Filtering (for Web Search)", open=False):
|
406 |
gr.Markdown("""
|
407 |
<div class="domain-info">
|
408 |
<h4>π Domain Filtering Guide</h4>
|
@@ -427,8 +427,7 @@ def create_gradio_app():
|
|
427 |
placeholder="wikipedia.org, reddit.com, twitter.com",
|
428 |
info="Never search these domains"
|
429 |
)
|
430 |
-
|
431 |
-
with gr.Accordion("π Common Domain Examples", open=False):
|
432 |
gr.Markdown("""
|
433 |
**Academic & Research:**
|
434 |
- arxiv.org, *.edu, scholar.google.com, researchgate.net
|
@@ -447,7 +446,7 @@ def create_gradio_app():
|
|
447 |
""")
|
448 |
|
449 |
# How to Use Section
|
450 |
-
with gr.Accordion("π How to Use This App", open=False):
|
451 |
gr.Markdown("""
|
452 |
### π Getting Started
|
453 |
1. **Enter your Groq API Key** - Get one from [console.groq.com](https://console.groq.com/)
|
@@ -470,7 +469,7 @@ def create_gradio_app():
|
|
470 |
""")
|
471 |
|
472 |
# Sample Examples Section
|
473 |
-
with gr.Accordion("π― Sample Examples to Test", open=False):
|
474 |
gr.Markdown("""
|
475 |
<div class="example-box">
|
476 |
<h4>π¬ Research & Analysis</h4>
|
@@ -550,8 +549,5 @@ def create_gradio_app():
|
|
550 |
if __name__ == "__main__":
|
551 |
app = create_gradio_app()
|
552 |
app.launch(
|
553 |
-
|
554 |
-
server_port=7860,
|
555 |
-
share=False,
|
556 |
-
show_error=True
|
557 |
)
|
|
|
316 |
- π€ AI capabilities (AI)
|
317 |
- β‘ Precision (Scope implies focused, targeted results)
|
318 |
""")
|
319 |
+
with gr.Group():
|
320 |
+
with gr.Accordion("π IMPORTANT !!!", open=False, elem_id="neuroscope-accordion"):
|
321 |
gr.Markdown("""
|
322 |
When **no domains are specified**, NeuroScope AI operates with unrestricted web search capabilities, allowing the compound models to autonomously search across the entire internet to find the most relevant and up-to-date information to answer your questions - essentially giving the AI complete freedom to use its agentic tools and search any website it deems helpful. When **domains are specified** (either include or exclude lists), you're essentially putting the AI on a leash - if you specify "include domains" like "arxiv.org, *.edu", the AI can ONLY search those academic sources, making it laser-focused on scholarly content, while "exclude domains" like "wikipedia.org, reddit.com" tells the AI to search everywhere EXCEPT those sites, filtering out potentially unreliable sources. The **π Custom System Prompt** feature allows you to completely override the AI's default personality and behavior - instead of the default creative assistant, you could make it act like a professional business consultant, a coding mentor, a creative writer, or even a specific character, essentially giving you the power to reshape the AI's entire conversational style and expertise focus with a single prompt change.
|
323 |
""")
|
|
|
375 |
clear_btn = gr.Button("ποΈ Clear", variant="secondary")
|
376 |
|
377 |
# Advanced Settings
|
378 |
+
with gr.Accordion("βοΈ Advanced Settings", open=False, elem_id="neuroscope-accordion"):
|
379 |
with gr.Row():
|
380 |
temperature = gr.Slider(
|
381 |
minimum=0.0,
|
|
|
402 |
)
|
403 |
|
404 |
# Domain Filtering Section
|
405 |
+
with gr.Accordion("π Domain Filtering (for Web Search)", open=False, elem_id="neuroscope-accordion"):
|
406 |
gr.Markdown("""
|
407 |
<div class="domain-info">
|
408 |
<h4>π Domain Filtering Guide</h4>
|
|
|
427 |
placeholder="wikipedia.org, reddit.com, twitter.com",
|
428 |
info="Never search these domains"
|
429 |
)
|
430 |
+
with gr.Accordion("π Common Domain Examples", open=False, elem_id="neuroscope-accordion"):
|
|
|
431 |
gr.Markdown("""
|
432 |
**Academic & Research:**
|
433 |
- arxiv.org, *.edu, scholar.google.com, researchgate.net
|
|
|
446 |
""")
|
447 |
|
448 |
# How to Use Section
|
449 |
+
with gr.Accordion("π How to Use This App", open=False, elem_id="neuroscope-accordion"):
|
450 |
gr.Markdown("""
|
451 |
### π Getting Started
|
452 |
1. **Enter your Groq API Key** - Get one from [console.groq.com](https://console.groq.com/)
|
|
|
469 |
""")
|
470 |
|
471 |
# Sample Examples Section
|
472 |
+
with gr.Accordion("π― Sample Examples to Test", open=False, elem_id="neuroscope-accordion"):
|
473 |
gr.Markdown("""
|
474 |
<div class="example-box">
|
475 |
<h4>π¬ Research & Analysis</h4>
|
|
|
549 |
if __name__ == "__main__":
|
550 |
app = create_gradio_app()
|
551 |
app.launch(
|
552 |
+
share=True
|
|
|
|
|
|
|
553 |
)
|