Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -640,6 +640,11 @@ def create_gradio_app():
|
|
640 |
background: linear-gradient(to right, #00ff94, #00b4db);
|
641 |
border-radius: 8px;
|
642 |
}
|
|
|
|
|
|
|
|
|
|
|
643 |
"""
|
644 |
|
645 |
with gr.Blocks(css=css, title="π€ Multi-Provider Creative Agentic AI Chat with Thinking", theme=gr.themes.Ocean()) as app:
|
@@ -798,13 +803,13 @@ def create_gradio_app():
|
|
798 |
gr.update(choices=models, value=models[0] if models else None,
|
799 |
label=f"π§ {provider.title()} Models"), # model_selection
|
800 |
gr.update(visible=chutes_visible), # show_thinking
|
801 |
-
gr.update(visible=groq_visible),
|
802 |
)
|
803 |
|
804 |
provider_selection.change(
|
805 |
fn=update_provider_ui,
|
806 |
inputs=[provider_selection],
|
807 |
-
outputs=[groq_api_key, chutes_api_key, model_selection, show_thinking
|
808 |
)
|
809 |
|
810 |
# Connect button functionality
|
@@ -862,7 +867,7 @@ def create_gradio_app():
|
|
862 |
)
|
863 |
|
864 |
# Domain Filtering Section (Groq only)
|
865 |
-
with gr.Group()
|
866 |
with gr.Accordion("π Domain Filtering (Groq Web Search Only)", open=False, elem_id="neuroscope-accordion"):
|
867 |
gr.Markdown("""
|
868 |
<div class="domain-info">
|
@@ -891,7 +896,7 @@ def create_gradio_app():
|
|
891 |
info="Never search these domains"
|
892 |
)
|
893 |
|
894 |
-
with gr.Accordion("π Common Domain Examples", open=False, elem_id="neuroscope-
|
895 |
gr.Markdown("""
|
896 |
**Academic & Research:**
|
897 |
- `arxiv.org`, `*.edu`, `scholar.google.com`, `researchgate.net`
|
@@ -921,13 +926,13 @@ def create_gradio_app():
|
|
921 |
gr.update(choices=models, value=models[0] if models else None,
|
922 |
label=f"π§ {provider.title()} Models"), # model_selection
|
923 |
gr.update(visible=chutes_visible), # show_thinking
|
924 |
-
gr.update(visible=groq_visible),
|
925 |
)
|
926 |
|
927 |
provider_selection.change(
|
928 |
fn=update_provider_ui_complete,
|
929 |
inputs=[provider_selection],
|
930 |
-
outputs=[groq_api_key, chutes_api_key, model_selection, show_thinking
|
931 |
)
|
932 |
|
933 |
# IMPORTANT Section with Citation Info and Thinking
|
|
|
640 |
background: linear-gradient(to right, #00ff94, #00b4db);
|
641 |
border-radius: 8px;
|
642 |
}
|
643 |
+
#neuroscope-accordion2 {
|
644 |
+
background: linear-gradient(to right, #00ff94, #00b4db);
|
645 |
+
border-radius: 8px;
|
646 |
+
margin-top: 10px;
|
647 |
+
}
|
648 |
"""
|
649 |
|
650 |
with gr.Blocks(css=css, title="π€ Multi-Provider Creative Agentic AI Chat with Thinking", theme=gr.themes.Ocean()) as app:
|
|
|
803 |
gr.update(choices=models, value=models[0] if models else None,
|
804 |
label=f"π§ {provider.title()} Models"), # model_selection
|
805 |
gr.update(visible=chutes_visible), # show_thinking
|
806 |
+
gr.update(visible=groq_visible),
|
807 |
)
|
808 |
|
809 |
provider_selection.change(
|
810 |
fn=update_provider_ui,
|
811 |
inputs=[provider_selection],
|
812 |
+
outputs=[groq_api_key, chutes_api_key, model_selection, show_thinking]
|
813 |
)
|
814 |
|
815 |
# Connect button functionality
|
|
|
867 |
)
|
868 |
|
869 |
# Domain Filtering Section (Groq only)
|
870 |
+
with gr.Group():
|
871 |
with gr.Accordion("π Domain Filtering (Groq Web Search Only)", open=False, elem_id="neuroscope-accordion"):
|
872 |
gr.Markdown("""
|
873 |
<div class="domain-info">
|
|
|
896 |
info="Never search these domains"
|
897 |
)
|
898 |
|
899 |
+
with gr.Accordion("π Common Domain Examples", open=False, elem_id="neuroscope-accordion2"):
|
900 |
gr.Markdown("""
|
901 |
**Academic & Research:**
|
902 |
- `arxiv.org`, `*.edu`, `scholar.google.com`, `researchgate.net`
|
|
|
926 |
gr.update(choices=models, value=models[0] if models else None,
|
927 |
label=f"π§ {provider.title()} Models"), # model_selection
|
928 |
gr.update(visible=chutes_visible), # show_thinking
|
929 |
+
gr.update(visible=groq_visible),
|
930 |
)
|
931 |
|
932 |
provider_selection.change(
|
933 |
fn=update_provider_ui_complete,
|
934 |
inputs=[provider_selection],
|
935 |
+
outputs=[groq_api_key, chutes_api_key, model_selection, show_thinking]
|
936 |
)
|
937 |
|
938 |
# IMPORTANT Section with Citation Info and Thinking
|