Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -351,18 +351,10 @@ def search_glossary(query):
|
|
351 |
st.markdown(result2)
|
352 |
#st.code(result2, language="python", line_numbers=True)
|
353 |
|
354 |
-
|
355 |
-
# 🔍 ArXiv RAG researcher expert ~-<>-~ Paper Summary & Ask LLM - api_name: /ask_llm
|
356 |
-
result3 = client.predict(
|
357 |
-
prompt=query,
|
358 |
-
llm_model_picked="google/gemma-7b-it",
|
359 |
-
stream_outputs=True,
|
360 |
-
api_name="/ask_llm"
|
361 |
-
)
|
362 |
-
st.markdown("# Gemma-7b-it")
|
363 |
-
st.markdown(result3)
|
364 |
-
#st.code(result3, language="python", line_numbers=True)
|
365 |
|
|
|
|
|
|
|
366 |
|
367 |
# 🔍 ArXiv RAG researcher expert ~-<>-~ Paper Summary & Ask LLM - api_name: /update_with_rag_md
|
368 |
response2 = client.predict(
|
@@ -408,7 +400,7 @@ def search_glossary(query):
|
|
408 |
st.markdown('4 error')
|
409 |
|
410 |
|
411 |
-
return result,
|
412 |
|
413 |
|
414 |
# 📝 Generate a safe filename from the first few lines of content
|
|
|
351 |
st.markdown(result2)
|
352 |
#st.code(result2, language="python", line_numbers=True)
|
353 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
|
355 |
+
|
356 |
+
|
357 |
+
|
358 |
|
359 |
# 🔍 ArXiv RAG researcher expert ~-<>-~ Paper Summary & Ask LLM - api_name: /update_with_rag_md
|
360 |
response2 = client.predict(
|
|
|
400 |
st.markdown('4 error')
|
401 |
|
402 |
|
403 |
+
return result, result3, response2
|
404 |
|
405 |
|
406 |
# 📝 Generate a safe filename from the first few lines of content
|