-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathapp.py
40 lines (29 loc) · 912 Bytes
/
app.py
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
import streamlit as st
import pandas as pd
import numpy as np
import keyword_exploration
import generate_train
import bot
# Creating a demo app with multiple pages
def main():
# Adding logo to sidebar
st.sidebar.image("images/logo-wo-slogan.jpeg", width=200)
# st.sidebar.image("images/eve-logo.png", width=200)
selected = st.sidebar.radio(
"Navigate pages", options=["Home", "Generate Train", "Keyword Exploration"]
)
if selected == "Home":
home()
if selected == "Generate Train":
def run_generate_train():
generate_train.main()
run_generate_train()
elif selected == "Keyword Exploration":
def run_keyword_explore():
keyword_exploration.main()
run_keyword_explore()
def home():
st.title("Welcome to Enhancing Virtual Engagement with EVE")
bot.main()
if __name__ == "__main__":
main()