Wiki-Game / app.py
KAI MAURIN-JONES
app updated
657dfe4
raw
history blame
No virus
1.12 kB
import streamlit as st
from wiki_game_st 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)