File size: 1,122 Bytes
aaaf5e8
bf84cfc
aaaf5e8
 
657dfe4
aaaf5e8
 
 
 
 
 
 
657dfe4
aaaf5e8
 
 
 
 
 
 
 
 
657dfe4
aaaf5e8
 
 
 
 
 
 
 
 
 
 
657dfe4
 
 
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
import streamlit as st
from wiki_game_st_bs4 import *

# Set the title of the app
st.title("Wiki Game (BETA)")

# Add body text
st.text("Enter a topic to start at and a topic to end at, and choose your level of drama")

# Set up two text inputs for start and end topics
start_topic = st.text_input("Start topic:")
end_topic = st.text_input("End topic:")
limit_pages = st.number_input("Enter pages limit:", min_value = 1, value = 50, step = 1)

# Create a slider with values 1-5
slider = st.slider('Choose your level of drama', 1, 5)

# Create an if statement to print out the text underneath the bar based on the slider value
if slider == 1:
    st.write("Absolute zoominess")
    delay = 0
elif slider == 2:
    st.write("Some shpeed")
    delay = 2
elif slider == 3:
    st.write("You'll actually be able to read things")
    delay = 3
elif slider == 4:
    st.write("A natural pace")
    delay = 4
elif slider == 5:
    st.write("You'll only do this once")
    delay = 6

# starting_topic = "soulja boy"
# target_topic = "test"
play_wiki_game(starting_topic = start_topic, target_topic = end_topic, limit = limit_pages)