import streamlit as st from agents import run_research import os # Set up page configuration st.set_page_config(page_title="🔍 Agentic Deep Researcher", layout="wide") # Initialize session state variables if "linkup_api_key" not in st.session_state: st.session_state.linkup_api_key = "" if "messages" not in st.session_state: st.session_state.messages = [] def reset_chat(): st.session_state.messages = [] # Sidebar: Linkup Configuration with updated logo link with st.sidebar: col1, col2 = st.columns([1, 3]) with col1: st.write("") st.image( "https://avatars.githubusercontent.com/u/175112039?s=200&v=4", width=65) with col2: st.header("Linkup Configuration") st.write("Deep Web Search") st.markdown("[Get your API key](https://app.linkup.so/sign-up)", unsafe_allow_html=True) linkup_api_key = st.text_input( "Enter your Linkup API Key", type="password") if linkup_api_key: st.session_state.linkup_api_key = linkup_api_key # Update the environment variable os.environ["LINKUP_API_KEY"] = linkup_api_key st.success("API Key stored successfully!") # Main Chat Interface Header with powered by logos from original code links col1, col2 = st.columns([6, 1]) with col1: st.markdown("