awacke1 commited on
Commit
72f1121
โ€ข
1 Parent(s): 30d769b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -26
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
- # ๐Ÿ”Run PaperSummarizer
572
- 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. '
573
- # = str(result).replace('\n', ' ').replace('|', ' ')
574
- # response2 = chat_with_model45(PaperSummarizer + str(response1))
575
- response2 = chat_with_model(PaperSummarizer + str(response1))
576
- st.write('๐Ÿ”Run 3 - Paper Summarizer is Complete.')
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
- # ๐Ÿ”Run PythonAppCoder
586
- 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. '
587
- #result = str(result).replace('\n', ' ').replace('|', ' ')
588
- # response4 = chat_with_model45(PythonAppCoder + str(response3))
589
- response4 = chat_with_model(PythonAppCoder + str(response3))
590
- st.write('๐Ÿ”Run Python AppCoder is Complete.')
591
-
592
- # experimental 45 - - - - - - - - - - - - -<><><><><>
 
 
 
 
 
593
 
594
- responseAll = '# Query: ' + query + '# Summary: ' + str(response2) + '# Streamlit App Specifier: ' + str(response3) + '# Complete Streamlit App: ' + str(response4) + '# Scholarly Article Links References: ' + str(response1)
595
- filename = generate_filename(responseAll, "md")
596
- create_file(filename, query, responseAll, should_save)
 
 
597
 
598
- return responseAll # ๐Ÿ”Run--------------------------------------------------------
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):