Spaces:
Sleeping
Sleeping
Alexander Casimir Fischer commited on
Commit ·
1b614f5
1
Parent(s): 0aa6dca
modified: app.py
Browse files
app.py
CHANGED
|
@@ -85,6 +85,7 @@ if st.session_state.standard_set:
|
|
| 85 |
if st.session_state.standard_set and subm_topic:
|
| 86 |
st.empty()
|
| 87 |
with st.spinner('🤖Browsing wikipedia...'):
|
|
|
|
| 88 |
if st.session_state.wikitext=="":
|
| 89 |
wikitext = trim_text(wikipedia.run(st.session_state.chosen_topic))
|
| 90 |
if wikitext=="No good Wikipedia Search Result was found":
|
|
@@ -96,8 +97,10 @@ if st.session_state.standard_set and subm_topic:
|
|
| 96 |
else:
|
| 97 |
st.session_state.wikitext = wikitext
|
| 98 |
st.session_state.topic_set=True
|
| 99 |
-
st.success("Article found")
|
| 100 |
-
|
|
|
|
|
|
|
| 101 |
if st.session_state.context=="":
|
| 102 |
st.session_state.context = context_chain.run(
|
| 103 |
chosen_topic=st.session_state.chosen_topic,
|
|
@@ -110,6 +113,7 @@ if st.session_state.standard_set and subm_topic:
|
|
| 110 |
question_or_task=st.session_state.question_or_task
|
| 111 |
)
|
| 112 |
st.success("Content and FRQ created")
|
|
|
|
| 113 |
if st.session_state.topic_set:
|
| 114 |
with st.form("content_form"):
|
| 115 |
st.write("🤖Here we go - that was quick, wasn't it?")
|
|
|
|
| 85 |
if st.session_state.standard_set and subm_topic:
|
| 86 |
st.empty()
|
| 87 |
with st.spinner('🤖Browsing wikipedia...'):
|
| 88 |
+
st.empty()
|
| 89 |
if st.session_state.wikitext=="":
|
| 90 |
wikitext = trim_text(wikipedia.run(st.session_state.chosen_topic))
|
| 91 |
if wikitext=="No good Wikipedia Search Result was found":
|
|
|
|
| 97 |
else:
|
| 98 |
st.session_state.wikitext = wikitext
|
| 99 |
st.session_state.topic_set=True
|
| 100 |
+
st.success("Article found")
|
| 101 |
+
st.empty()
|
| 102 |
+
with st.spinner('🤖So interesting! Now please give me a few seconds to create the context and FRQ.'):
|
| 103 |
+
st.empty()
|
| 104 |
if st.session_state.context=="":
|
| 105 |
st.session_state.context = context_chain.run(
|
| 106 |
chosen_topic=st.session_state.chosen_topic,
|
|
|
|
| 113 |
question_or_task=st.session_state.question_or_task
|
| 114 |
)
|
| 115 |
st.success("Content and FRQ created")
|
| 116 |
+
st.empty()
|
| 117 |
if st.session_state.topic_set:
|
| 118 |
with st.form("content_form"):
|
| 119 |
st.write("🤖Here we go - that was quick, wasn't it?")
|