Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -815,12 +815,15 @@ def set_transcript(text):
|
|
815 |
|
816 |
def main():
|
817 |
st.sidebar.markdown("### π²BikeAIπ Claude and GPT Multi-Agent Research AI")
|
818 |
-
|
819 |
# Main navigation
|
820 |
tab_main = st.radio("Choose Action:",
|
821 |
["π€ Voice Input", "πΈ Media Gallery", "π Search ArXiv", "π File Editor"],
|
822 |
horizontal=True)
|
823 |
-
|
|
|
|
|
|
|
|
|
824 |
|
825 |
# π################ Component Magic ###############π
|
826 |
mycomponent = components.declare_component("mycomponent", path="mycomponent") # load from __init__.py and index.html in mycomponent folder
|
@@ -833,7 +836,7 @@ def main():
|
|
833 |
gpt_response = process_with_gpt(user_input)
|
834 |
elif model_choice == "Claude-3":
|
835 |
claude_response = process_with_claude(user_input)
|
836 |
-
else: #
|
837 |
col1, col2, col3 = st.columns(3)
|
838 |
with col2:
|
839 |
st.subheader("Claude-3.5 Sonnet:")
|
@@ -850,11 +853,9 @@ def main():
|
|
850 |
with col3:
|
851 |
st.subheader("Arxiv and Mistral Research:")
|
852 |
with st.spinner("Searching ArXiv..."):
|
853 |
-
#results = search_arxiv(user_input)
|
854 |
results = perform_ai_lookup(user_input)
|
855 |
-
|
856 |
st.markdown(results)
|
857 |
-
|
858 |
|
859 |
|
860 |
|
@@ -877,11 +878,7 @@ def main():
|
|
877 |
# st.markdown("### Processed Voice Input:")
|
878 |
# st.text_area("Voice Transcript", st.session_state.voice_transcript, height=100)
|
879 |
|
880 |
-
|
881 |
-
model_choice = st.sidebar.radio(
|
882 |
-
"Choose AI Model:",
|
883 |
-
[ "GPT+Claude+Arxiv", "GPT-4o", "Claude-3"]
|
884 |
-
)
|
885 |
|
886 |
# Chat Interface
|
887 |
user_input = st.text_area("Message:", height=100)
|
|
|
815 |
|
816 |
def main():
|
817 |
st.sidebar.markdown("### π²BikeAIπ Claude and GPT Multi-Agent Research AI")
|
|
|
818 |
# Main navigation
|
819 |
tab_main = st.radio("Choose Action:",
|
820 |
["π€ Voice Input", "πΈ Media Gallery", "π Search ArXiv", "π File Editor"],
|
821 |
horizontal=True)
|
822 |
+
# Model Selection
|
823 |
+
model_choice = st.sidebar.radio(
|
824 |
+
"Choose AI Model:",
|
825 |
+
[ "GPT+Claude+Arxiv", "GPT-4o", "Claude-3"]
|
826 |
+
)
|
827 |
|
828 |
# π################ Component Magic ###############π
|
829 |
mycomponent = components.declare_component("mycomponent", path="mycomponent") # load from __init__.py and index.html in mycomponent folder
|
|
|
836 |
gpt_response = process_with_gpt(user_input)
|
837 |
elif model_choice == "Claude-3":
|
838 |
claude_response = process_with_claude(user_input)
|
839 |
+
else: # All Three AIs!
|
840 |
col1, col2, col3 = st.columns(3)
|
841 |
with col2:
|
842 |
st.subheader("Claude-3.5 Sonnet:")
|
|
|
853 |
with col3:
|
854 |
st.subheader("Arxiv and Mistral Research:")
|
855 |
with st.spinner("Searching ArXiv..."):
|
|
|
856 |
results = perform_ai_lookup(user_input)
|
|
|
857 |
st.markdown(results)
|
858 |
+
# π################ Component Magic ###############π
|
859 |
|
860 |
|
861 |
|
|
|
878 |
# st.markdown("### Processed Voice Input:")
|
879 |
# st.text_area("Voice Transcript", st.session_state.voice_transcript, height=100)
|
880 |
|
881 |
+
|
|
|
|
|
|
|
|
|
882 |
|
883 |
# Chat Interface
|
884 |
user_input = st.text_area("Message:", height=100)
|