Update app.py
Browse files
app.py
CHANGED
@@ -299,7 +299,6 @@ def perform_ai_lookup(q, vocal_summary=True, extended_refs=False, titles_summary
|
|
299 |
r2 = client.predict(q,"mistralai/Mixtral-8x7B-Instruct-v0.1",True,api_name="/ask_llm")
|
300 |
|
301 |
result = f"### π {q}\n\n{r2}\n\n{refs}"
|
302 |
-
st.markdown(result)
|
303 |
|
304 |
# Audio outputs
|
305 |
if full_audio:
|
@@ -341,6 +340,9 @@ def perform_ai_lookup(q, vocal_summary=True, extended_refs=False, titles_summary
|
|
341 |
st.write("### π Titles")
|
342 |
play_and_download_audio(audio_file_titles)
|
343 |
|
|
|
|
|
|
|
344 |
elapsed = time.time()-start
|
345 |
st.write(f"**Total Elapsed:** {elapsed:.2f} s")
|
346 |
|
|
|
299 |
r2 = client.predict(q,"mistralai/Mixtral-8x7B-Instruct-v0.1",True,api_name="/ask_llm")
|
300 |
|
301 |
result = f"### π {q}\n\n{r2}\n\n{refs}"
|
|
|
302 |
|
303 |
# Audio outputs
|
304 |
if full_audio:
|
|
|
340 |
st.write("### π Titles")
|
341 |
play_and_download_audio(audio_file_titles)
|
342 |
|
343 |
+
# show text last after playback interfaces. For the big one lets add a feature later that breaks into their own.
|
344 |
+
st.markdown(result)
|
345 |
+
|
346 |
elapsed = time.time()-start
|
347 |
st.write(f"**Total Elapsed:** {elapsed:.2f} s")
|
348 |
|