Spaces:
Sleeping
Sleeping
KAI MAURIN-JONES
commited on
Commit
•
657dfe4
1
Parent(s):
aaaf5e8
app updated
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
from wiki_game_st import *
|
3 |
|
4 |
# Set the title of the app
|
5 |
-
st.title("Wiki Game")
|
6 |
|
7 |
# Add body text
|
8 |
st.text("Enter a topic to start at and a topic to end at, and choose your level of drama")
|
@@ -10,6 +10,7 @@ st.text("Enter a topic to start at and a topic to end at, and choose your level
|
|
10 |
# Set up two text inputs for start and end topics
|
11 |
start_topic = st.text_input("Start topic:")
|
12 |
end_topic = st.text_input("End topic:")
|
|
|
13 |
|
14 |
# Create a slider with values 1-5
|
15 |
slider = st.slider('Choose your level of drama', 1, 5)
|
@@ -19,7 +20,7 @@ if slider == 1:
|
|
19 |
st.write("Absolute zoominess")
|
20 |
delay = 0
|
21 |
elif slider == 2:
|
22 |
-
st.write("Some
|
23 |
delay = 2
|
24 |
elif slider == 3:
|
25 |
st.write("You'll actually be able to read things")
|
@@ -31,5 +32,6 @@ elif slider == 5:
|
|
31 |
st.write("You'll only do this once")
|
32 |
delay = 6
|
33 |
|
34 |
-
#
|
35 |
-
|
|
|
|
2 |
from wiki_game_st import *
|
3 |
|
4 |
# Set the title of the app
|
5 |
+
st.title("Wiki Game (BETA)")
|
6 |
|
7 |
# Add body text
|
8 |
st.text("Enter a topic to start at and a topic to end at, and choose your level of drama")
|
|
|
10 |
# Set up two text inputs for start and end topics
|
11 |
start_topic = st.text_input("Start topic:")
|
12 |
end_topic = st.text_input("End topic:")
|
13 |
+
limit_pages = st.number_input("Enter pages limit:", min_value = 1, value = 50, step = 1)
|
14 |
|
15 |
# Create a slider with values 1-5
|
16 |
slider = st.slider('Choose your level of drama', 1, 5)
|
|
|
20 |
st.write("Absolute zoominess")
|
21 |
delay = 0
|
22 |
elif slider == 2:
|
23 |
+
st.write("Some shpeed")
|
24 |
delay = 2
|
25 |
elif slider == 3:
|
26 |
st.write("You'll actually be able to read things")
|
|
|
32 |
st.write("You'll only do this once")
|
33 |
delay = 6
|
34 |
|
35 |
+
# starting_topic = "soulja boy"
|
36 |
+
# target_topic = "test"
|
37 |
+
play_wiki_game(starting_topic = start_topic, target_topic = end_topic, limit = limit_pages)
|