Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -769,9 +769,10 @@ def perform_ai_lookup(q, vocal_summary=True, extended_refs=False,
|
|
769 |
# True,
|
770 |
# api_name="/ask_llm"
|
771 |
#)
|
772 |
-
|
773 |
#result = f"### 🔎 {q}\n\n{r2}\n\n{refs}"
|
774 |
-
|
|
|
|
|
775 |
md_file, audio_file = save_qa_with_audio(q, result)
|
776 |
st.subheader("📝 Main Response Audio")
|
777 |
play_and_download_audio(audio_file, st.session_state['audio_format'])
|
|
|
769 |
# True,
|
770 |
# api_name="/ask_llm"
|
771 |
#)
|
|
|
772 |
#result = f"### 🔎 {q}\n\n{r2}\n\n{refs}"
|
773 |
+
|
774 |
+
result = f"🔎 {q}\n\n{refs}" # use original question q with result paired with paper references for best prompt fortification
|
775 |
+
|
776 |
md_file, audio_file = save_qa_with_audio(q, result)
|
777 |
st.subheader("📝 Main Response Audio")
|
778 |
play_and_download_audio(audio_file, st.session_state['audio_format'])
|