Update app.py
Browse files
app.py
CHANGED
@@ -116,10 +116,12 @@ if st.button("Ask QA "):
|
|
116 |
st.write(str(chain)[:700])
|
117 |
st.write("AI is reading this [link](%s)" % url)
|
118 |
prgpgress = st.progress(0)
|
|
|
119 |
for i in range(100):
|
120 |
time.sleep(0.1)
|
121 |
prgpgress.progress(i+1)
|
122 |
-
|
|
|
123 |
|
124 |
|
125 |
answer = chain.run(input_documents=documents, question=yourquestion)
|
|
|
116 |
st.write(str(chain)[:700])
|
117 |
st.write("AI is reading this [link](%s)" % url)
|
118 |
prgpgress = st.progress(0)
|
119 |
+
st.subheader(colorizedtext("red", yourquestion))
|
120 |
for i in range(100):
|
121 |
time.sleep(0.1)
|
122 |
prgpgress.progress(i+1)
|
123 |
+
if i == 98:
|
124 |
+
i = 0
|
125 |
|
126 |
|
127 |
answer = chain.run(input_documents=documents, question=yourquestion)
|