Update app.py
Browse files
app.py
CHANGED
@@ -567,36 +567,42 @@ def search_glossary(query): # 🔍Run------------------------------------------
|
|
567 |
st.write('🔍Run of Multi-Agent Systems is Complete')
|
568 |
|
569 |
# experimental 45 - - - - - - - - - - - - -<><><><><>
|
|
|
|
|
|
|
|
|
|
|
570 |
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
# response2 = chat_with_model45(PaperSummarizer + str(response1))
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
# 🔍Run AppSpecifier
|
579 |
-
AppSpecifier = ' Design and write a streamlit python code listing and specification that implements each scientific method steps as ten functions keeping specification in a markdown table in the function comments with original paper link to outline the AI pipeline ensemble implementing code as full plan to build.'
|
580 |
-
#result = str(result).replace('\n', ' ').replace('|', ' ')
|
581 |
-
# response3 = chat_with_model45(AppSpecifier + str(response2))
|
582 |
-
response3 = chat_with_model(AppSpecifier + str(response2))
|
583 |
-
st.write('🔍Run 4 - AppSpecifier is Complete.')
|
584 |
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
#
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
#
|
|
|
|
|
|
|
|
|
|
|
593 |
|
594 |
-
|
595 |
-
|
596 |
-
|
|
|
|
|
597 |
|
598 |
-
|
599 |
-
|
|
|
600 |
|
601 |
# Function to display the glossary in a structured format
|
602 |
def display_glossary(glossary, area):
|
|
|
567 |
st.write('🔍Run of Multi-Agent Systems is Complete')
|
568 |
|
569 |
# experimental 45 - - - - - - - - - - - - -<><><><><>
|
570 |
+
|
571 |
+
|
572 |
+
RunPostArxivLLM = False
|
573 |
+
|
574 |
+
if RunPostArxivLLM:
|
575 |
|
576 |
+
# 🔍Run PaperSummarizer
|
577 |
+
PaperSummarizer = ' Create a paper summary as a markdown table with paper links clustering the features writing short markdown emoji outlines to extract three main ideas from each of the ten summaries. For each one create three simple points led by an emoji of the main three steps needed as method step process for implementing the idea as a single app.py streamlit python app. '
|
578 |
+
# = str(result).replace('\n', ' ').replace('|', ' ')
|
579 |
+
# response2 = chat_with_model45(PaperSummarizer + str(response1))
|
580 |
+
response2 = chat_with_model(PaperSummarizer + str(response1))
|
581 |
+
st.write('🔍Run 3 - Paper Summarizer is Complete.')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
582 |
|
583 |
+
# 🔍Run AppSpecifier
|
584 |
+
AppSpecifier = ' Design and write a streamlit python code listing and specification that implements each scientific method steps as ten functions keeping specification in a markdown table in the function comments with original paper link to outline the AI pipeline ensemble implementing code as full plan to build.'
|
585 |
+
#result = str(result).replace('\n', ' ').replace('|', ' ')
|
586 |
+
# response3 = chat_with_model45(AppSpecifier + str(response2))
|
587 |
+
response3 = chat_with_model(AppSpecifier + str(response2))
|
588 |
+
st.write('🔍Run 4 - AppSpecifier is Complete.')
|
589 |
+
|
590 |
+
# 🔍Run PythonAppCoder
|
591 |
+
PythonAppCoder = ' Complete this streamlit python app implementing the functions in detail using appropriate python libraries and streamlit user interface elements. Show full code listing for the completed detail app as full code listing with no comments or commentary. '
|
592 |
+
#result = str(result).replace('\n', ' ').replace('|', ' ')
|
593 |
+
# response4 = chat_with_model45(PythonAppCoder + str(response3))
|
594 |
+
response4 = chat_with_model(PythonAppCoder + str(response3))
|
595 |
+
st.write('🔍Run Python AppCoder is Complete.')
|
596 |
|
597 |
+
# experimental 45 - - - - - - - - - - - - -<><><><><>
|
598 |
+
|
599 |
+
responseAll = '# Query: ' + query + '# Summary: ' + str(response2) + '# Streamlit App Specifier: ' + str(response3) + '# Complete Streamlit App: ' + str(response4) + '# Scholarly Article Links References: ' + str(response1)
|
600 |
+
filename = generate_filename(responseAll, "md")
|
601 |
+
create_file(filename, query, responseAll, should_save)
|
602 |
|
603 |
+
return responseAll # 🔍Run--------------------------------------------------------
|
604 |
+
else:
|
605 |
+
return response1
|
606 |
|
607 |
# Function to display the glossary in a structured format
|
608 |
def display_glossary(glossary, area):
|