Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,9 +27,9 @@ def animate_typing(text):
|
|
| 27 |
animated_text = ""
|
| 28 |
for char in text:
|
| 29 |
animated_text += char
|
| 30 |
-
st.write(animated_text, end=''
|
| 31 |
time.sleep(0.05)
|
| 32 |
-
st.write("")
|
| 33 |
|
| 34 |
def main():
|
| 35 |
st.title("Question Answering System")
|
|
|
|
| 27 |
animated_text = ""
|
| 28 |
for char in text:
|
| 29 |
animated_text += char
|
| 30 |
+
st.write(animated_text, end='') # Suppress newline
|
| 31 |
time.sleep(0.05)
|
| 32 |
+
st.write("") # Write newline after animation completes
|
| 33 |
|
| 34 |
def main():
|
| 35 |
st.title("Question Answering System")
|