Spaces:
Build error
Build error
Achyut Tiwari
commited on
Update ask.py
Browse files- pages/ask.py +3 -3
pages/ask.py
CHANGED
|
@@ -270,21 +270,21 @@ def get_answer(question: str):
|
|
| 270 |
def app():
|
| 271 |
with open('style.css') as f:
|
| 272 |
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
|
| 273 |
-
footer =
|
| 274 |
<div class="footer-custom">
|
| 275 |
Streamlit app - <a href="https://www.linkedin.com/in/danijel-petkovic-573309144/" target="_blank">Danijel Petkovic</a> |
|
| 276 |
LFQA/DPR models - <a href="https://www.linkedin.com/in/blagojevicvladimir/" target="_blank">Vladimir Blagojevic</a> |
|
| 277 |
Guidance & Feedback - <a href="https://yjernite.github.io/" target="_blank">Yacine Jernite</a> |
|
| 278 |
<a href="https://towardsdatascience.com/long-form-qa-beyond-eli5-an-updated-dataset-and-approach-319cb841aabb" target="_blank">Blog</a>
|
| 279 |
</div>
|
| 280 |
-
|
| 281 |
st.markdown(footer, unsafe_allow_html=True)
|
| 282 |
|
| 283 |
st.title('Wikipedia Assistant')
|
| 284 |
#st.header('We are migrating to new backend infrastructure. ETA - 15.6.2022')
|
| 285 |
|
| 286 |
question = st.text_input(
|
| 287 |
-
|
| 288 |
#question = ""
|
| 289 |
spinner = st.empty()
|
| 290 |
if question !="":
|
|
|
|
| 270 |
def app():
|
| 271 |
with open('style.css') as f:
|
| 272 |
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
|
| 273 |
+
footer = """
|
| 274 |
<div class="footer-custom">
|
| 275 |
Streamlit app - <a href="https://www.linkedin.com/in/danijel-petkovic-573309144/" target="_blank">Danijel Petkovic</a> |
|
| 276 |
LFQA/DPR models - <a href="https://www.linkedin.com/in/blagojevicvladimir/" target="_blank">Vladimir Blagojevic</a> |
|
| 277 |
Guidance & Feedback - <a href="https://yjernite.github.io/" target="_blank">Yacine Jernite</a> |
|
| 278 |
<a href="https://towardsdatascience.com/long-form-qa-beyond-eli5-an-updated-dataset-and-approach-319cb841aabb" target="_blank">Blog</a>
|
| 279 |
</div>
|
| 280 |
+
"""
|
| 281 |
st.markdown(footer, unsafe_allow_html=True)
|
| 282 |
|
| 283 |
st.title('Wikipedia Assistant')
|
| 284 |
#st.header('We are migrating to new backend infrastructure. ETA - 15.6.2022')
|
| 285 |
|
| 286 |
question = st.text_input(
|
| 287 |
+
label='Ask Wikipedia an open-ended question below; for example, "Why do airplanes leave contrails in the sky?"')
|
| 288 |
#question = ""
|
| 289 |
spinner = st.empty()
|
| 290 |
if question !="":
|