Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,8 @@ def typewriter(text: str, speed: int):
|
|
38 |
time.sleep(1 / speed)
|
39 |
|
40 |
def main():
|
41 |
-
st.title("Question Answering
|
|
|
42 |
|
43 |
question = st.text_input("Ask your question:")
|
44 |
|
@@ -48,7 +49,7 @@ def main():
|
|
48 |
answer_placeholder.write("Thinking...")
|
49 |
answer = ask_question(question)
|
50 |
answer_placeholder.empty()
|
51 |
-
typewriter("Answer: " + answer, speed=
|
52 |
else:
|
53 |
st.write("Please enter a question.")
|
54 |
|
|
|
38 |
time.sleep(1 / speed)
|
39 |
|
40 |
def main():
|
41 |
+
st.title("Near Instant Question Answering")
|
42 |
+
st.write("Limitations: May generate unhelpfull or outdated content, no chat history.")
|
43 |
|
44 |
question = st.text_input("Ask your question:")
|
45 |
|
|
|
49 |
answer_placeholder.write("Thinking...")
|
50 |
answer = ask_question(question)
|
51 |
answer_placeholder.empty()
|
52 |
+
typewriter("Answer: " + answer, speed=80)
|
53 |
else:
|
54 |
st.write("Please enter a question.")
|
55 |
|