Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -703,14 +703,7 @@ def main():
|
|
| 703 |
with open(f, 'r', encoding='utf-8') as file:
|
| 704 |
st.session_state['marquee_content'] = file.read()[:500] # First 500 chars
|
| 705 |
|
| 706 |
-
# Update marquee when displaying papers
|
| 707 |
-
if tab_main == "🔍 ArXiv":
|
| 708 |
-
papers = parse_arxiv_refs(refs)
|
| 709 |
-
if papers:
|
| 710 |
-
paper_texts = [f"📄 {p['title']} | {p['authors']}" for p in papers]
|
| 711 |
-
st.session_state['marquee_content'] = " ⭐ ".join(paper_texts)
|
| 712 |
|
| 713 |
-
|
| 714 |
|
| 715 |
# Add voice selector to sidebar
|
| 716 |
st.sidebar.markdown("### 🎤 Voice Settings")
|
|
@@ -780,8 +773,14 @@ def main():
|
|
| 780 |
process_with_gpt(edited_input)
|
| 781 |
elif run_option == "Claude-3.5":
|
| 782 |
process_with_claude(edited_input)
|
| 783 |
-
|
|
|
|
| 784 |
if tab_main == "🔍 ArXiv":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 785 |
st.subheader("🔍 Query ArXiv")
|
| 786 |
q = st.text_input("🔍 Query:")
|
| 787 |
|
|
|
|
| 703 |
with open(f, 'r', encoding='utf-8') as file:
|
| 704 |
st.session_state['marquee_content'] = file.read()[:500] # First 500 chars
|
| 705 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 706 |
|
|
|
|
| 707 |
|
| 708 |
# Add voice selector to sidebar
|
| 709 |
st.sidebar.markdown("### 🎤 Voice Settings")
|
|
|
|
| 773 |
process_with_gpt(edited_input)
|
| 774 |
elif run_option == "Claude-3.5":
|
| 775 |
process_with_claude(edited_input)
|
| 776 |
+
|
| 777 |
+
|
| 778 |
if tab_main == "🔍 ArXiv":
|
| 779 |
+
papers = parse_arxiv_refs(refs)
|
| 780 |
+
if papers:
|
| 781 |
+
paper_texts = [f"📄 {p['title']} | {p['authors']}" for p in papers]
|
| 782 |
+
st.session_state['marquee_content'] = " ⭐ ".join(paper_texts)
|
| 783 |
+
|
| 784 |
st.subheader("🔍 Query ArXiv")
|
| 785 |
q = st.text_input("🔍 Query:")
|
| 786 |
|