Spaces:
Build error
Build error
Achyut Tiwari
commited on
Commit
•
dd77f59
1
Parent(s):
0487e04
Update ask.py
Browse files- pages/ask.py +4 -5
pages/ask.py
CHANGED
@@ -270,14 +270,14 @@ 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')
|
@@ -289,16 +289,15 @@ def app():
|
|
289 |
spinner = st.empty()
|
290 |
if question !="":
|
291 |
spinner.markdown(
|
292 |
-
f"
|
293 |
<div class="loader-wrapper">
|
294 |
<div class="loader">
|
295 |
</div>
|
296 |
<p>Generating answer for: <b>{question}</b></p>
|
297 |
</div>
|
298 |
<label class="loader-note">Answer generation may take up to 20 sec. Please stand by.</label>
|
299 |
-
|
300 |
unsafe_allow_html=True,
|
301 |
-
|
302 |
)
|
303 |
|
304 |
question_response = get_answer(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')
|
|
|
289 |
spinner = st.empty()
|
290 |
if question !="":
|
291 |
spinner.markdown(
|
292 |
+
f"""
|
293 |
<div class="loader-wrapper">
|
294 |
<div class="loader">
|
295 |
</div>
|
296 |
<p>Generating answer for: <b>{question}</b></p>
|
297 |
</div>
|
298 |
<label class="loader-note">Answer generation may take up to 20 sec. Please stand by.</label>
|
299 |
+
""",
|
300 |
unsafe_allow_html=True,
|
|
|
301 |
)
|
302 |
|
303 |
question_response = get_answer(question)
|