File size: 2,013 Bytes
a207b64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import streamlit as st
def CreatePage():
    st.markdown("""
        <h1 style="text-align:center; color:#4CAF50; font-size: 40px;">🚀 Welcome to DataScribe</h1>
        <p style="text-align:center; font-size: 18px; color:#333;">An AI-powered information extraction tool to streamline data retrieval and analysis.</p>
    """, unsafe_allow_html=True)

    st.markdown("""---""")

    def feature_card(title, description, icon, page):
        col1, col2 = st.columns([1, 4])
        with col1:
            st.markdown(f"<div style='font-size: 40px; text-align:center;'>{icon}</div>", unsafe_allow_html=True)
        with col2:
            if st.button(f"{title}", key=title, help=description):
                st.session_state.selected_page = page
            st.markdown(f"<p style='font-size: 14px; color:#555;'>{description}</p>", unsafe_allow_html=True)
            
    col1, col2 = st.columns([1, 1])

    with col1:
        feature_card(
            title="Upload Data",
            description="Upload data from CSV or Google Sheets to get started with your extraction.",
            icon="📄",
            page="Upload Data"
        )

    with col2:
        feature_card(
            title="Define Custom Queries",
            description="Set custom search queries for each entity in your dataset for specific information retrieval.",
            icon="🔍",
            page="Define Query"
        )

    col1, col2 = st.columns([1, 1])

    with col1:
        feature_card(
            title="Run Automated Searches",
            description="Execute automated web searches and extract relevant information using an AI-powered agent.",
            icon="🤖",
            page="Extract Information"
        )

    with col2:
        feature_card(
            title="View & Download Results",
            description="View extracted data in a structured format and download as a CSV or update Google Sheets.",
            icon="📊",
            page="View & Download"
        )
    return True