Spaces:
Build error
Build error
Achyut Tiwari
commited on
Update ask.py
Browse files- pages/ask.py +13 -13
pages/ask.py
CHANGED
|
@@ -279,19 +279,19 @@ def app():
|
|
| 279 |
question = st.text_input(
|
| 280 |
label='Ask Wikipedia an open-ended question below; for example, "Why do airplanes leave contrails in the sky?"')
|
| 281 |
#question = ""
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
)
|
| 295 |
|
| 296 |
question_response = get_answer(question)
|
| 297 |
if question_response:
|
|
|
|
| 279 |
question = st.text_input(
|
| 280 |
label='Ask Wikipedia an open-ended question below; for example, "Why do airplanes leave contrails in the sky?"')
|
| 281 |
#question = ""
|
| 282 |
+
# spinner = st.empty()
|
| 283 |
+
# if question !="":
|
| 284 |
+
# spinner.markdown(
|
| 285 |
+
# f"""
|
| 286 |
+
# <div class="loader-wrapper">
|
| 287 |
+
# <div class="loader">
|
| 288 |
+
# </div>
|
| 289 |
+
# <p>Generating answer for: <b>{question}</b></p>
|
| 290 |
+
# </div>
|
| 291 |
+
# <label class="loader-note">Answer generation may take up to 20 sec. Please stand by.</label>
|
| 292 |
+
# """,
|
| 293 |
+
# unsafe_allow_html=True,
|
| 294 |
+
#)
|
| 295 |
|
| 296 |
question_response = get_answer(question)
|
| 297 |
if question_response:
|