Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,66 +123,45 @@ def chat_with_file_contents(prompt, file_content, model_choice='gpt-3.5-turbo'):
|
|
| 123 |
return response['choices'][0]['message']['content']
|
| 124 |
|
| 125 |
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
def link_button_with_emoji(url, title, emoji_summary):
|
| 130 |
-
emojis = ["π", "π₯", "π‘οΈ", "π©Ί", "
|
| 131 |
random_emoji = random.choice(emojis)
|
| 132 |
st.markdown(f"[{random_emoji} {emoji_summary} - {title}]({url})")
|
| 133 |
|
| 134 |
-
#
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
if st.button("Discuss MemGPT Features"):
|
| 163 |
-
outline_memgpt = "Memory Hierarchy, Context Paging, Self-directed Memory Updates, Memory Editing, Memory Retrieval, Semantic & Episodic Memory, Emotional Contextual Understanding"
|
| 164 |
-
chat_with_model("Discuss the key features of MemGPT: " + outline_memgpt, "MemGPT")
|
| 165 |
-
|
| 166 |
-
# Expander for AutoGen
|
| 167 |
-
with st.expander("AutoGen π€π", expanded=False):
|
| 168 |
-
if st.button("Explore AutoGen Multi-Agent LLM"):
|
| 169 |
-
outline_autogen = "Cooperative Conversations, Combining Capabilities, Complex Task Solving, Divergent Thinking, Factuality, Highly Capable Agents, Generic Abstraction"
|
| 170 |
-
chat_with_model("Explore the key features of AutoGen: " + outline_autogen, "AutoGen")
|
| 171 |
-
|
| 172 |
-
# Expander for Whisper
|
| 173 |
-
with st.expander("Whisper ππ§βπ", expanded=False):
|
| 174 |
-
if st.button("Learn About Whisper STT"):
|
| 175 |
-
outline_whisper = "Scaling, Deep Learning Approaches, Weak Supervision, Zero-shot Transfer Learning, Accuracy & Robustness, Pre-training Techniques, Broad Environments"
|
| 176 |
-
chat_with_model("Learn about the key features of Whisper: " + outline_whisper, "Whisper")
|
| 177 |
-
|
| 178 |
-
# Expander for ChatDev
|
| 179 |
-
with st.expander("ChatDev π¬π»", expanded=False):
|
| 180 |
-
if st.button("Deep Dive into ChatDev"):
|
| 181 |
outline_chatdev = "Effective Communication, Comprehensive Software Solutions, Diverse Social Identities, Tailored Codes, Environment Dependencies, User Manuals"
|
| 182 |
-
|
|
|
|
| 183 |
|
|
|
|
| 184 |
|
| 185 |
-
add_paper_buttons()
|
| 186 |
|
| 187 |
def generate_filename_old(prompt, file_type):
|
| 188 |
central = pytz.timezone('US/Central')
|
|
|
|
| 123 |
return response['choices'][0]['message']['content']
|
| 124 |
|
| 125 |
|
|
|
|
|
|
|
|
|
|
| 126 |
def link_button_with_emoji(url, title, emoji_summary):
|
| 127 |
+
emojis = ["π", "π₯", "π‘οΈ", "π©Ί", "π¬", "π", "π§ͺ", "π¨ββοΈ", "π©ββοΈ"]
|
| 128 |
random_emoji = random.choice(emojis)
|
| 129 |
st.markdown(f"[{random_emoji} {emoji_summary} - {title}]({url})")
|
| 130 |
|
| 131 |
+
# Define function to add paper buttons and links
|
| 132 |
+
def add_paper_buttons_and_links():
|
| 133 |
+
col1, col2, col3, col4 = st.columns(4)
|
| 134 |
+
|
| 135 |
+
with col1:
|
| 136 |
+
with st.expander("MemGPT π§ πΎ", expanded=False):
|
| 137 |
+
link_button_with_emoji("https://arxiv.org/abs/2310.08560", "MemGPT", "π§ πΎ Memory OS")
|
| 138 |
+
outline_memgpt = "Memory Hierarchy, Context Paging, Self-directed Memory Updates, Memory Editing, Memory Retrieval, Preprompt Instructions, Semantic Memory, Episodic Memory, Emotional Contextual Understanding"
|
| 139 |
+
if st.button("Discuss MemGPT Features"):
|
| 140 |
+
chat_with_model("Discuss the key features of MemGPT: " + outline_memgpt, "MemGPT")
|
| 141 |
+
|
| 142 |
+
with col2:
|
| 143 |
+
with st.expander("AutoGen π€π", expanded=False):
|
| 144 |
+
link_button_with_emoji("https://arxiv.org/abs/2308.08155", "AutoGen", "π€π Multi-Agent LLM")
|
| 145 |
+
outline_autogen = "Cooperative Conversations, Combining Capabilities, Complex Task Solving, Divergent Thinking, Factuality, Highly Capable Agents, Generic Abstraction, Effective Implementation"
|
| 146 |
+
if st.button("Explore AutoGen Multi-Agent LLM"):
|
| 147 |
+
chat_with_model("Explore the key features of AutoGen: " + outline_autogen, "AutoGen")
|
| 148 |
+
|
| 149 |
+
with col3:
|
| 150 |
+
with st.expander("Whisper ππ§βπ", expanded=False):
|
| 151 |
+
link_button_with_emoji("https://arxiv.org/abs/2212.04356", "Whisper", "ππ§βπ Robust STT")
|
| 152 |
+
outline_whisper = "Scaling, Deep Learning Approaches, Weak Supervision, Zero-shot Transfer Learning, Accuracy & Robustness, Pre-training Techniques, Broad Range of Environments, Combining Multiple Datasets"
|
| 153 |
+
if st.button("Learn About Whisper STT"):
|
| 154 |
+
chat_with_model("Learn about the key features of Whisper: " + outline_whisper, "Whisper")
|
| 155 |
+
|
| 156 |
+
with col4:
|
| 157 |
+
with st.expander("ChatDev π¬π»", expanded=False):
|
| 158 |
+
link_button_with_emoji("https://arxiv.org/pdf/2307.07924.pdf", "ChatDev", "π¬π» Comm. Agents")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
outline_chatdev = "Effective Communication, Comprehensive Software Solutions, Diverse Social Identities, Tailored Codes, Environment Dependencies, User Manuals"
|
| 160 |
+
if st.button("Deep Dive into ChatDev"):
|
| 161 |
+
chat_with_model("Deep dive into the features of ChatDev: " + outline_chatdev, "ChatDev")
|
| 162 |
|
| 163 |
+
add_paper_buttons_and_links()
|
| 164 |
|
|
|
|
| 165 |
|
| 166 |
def generate_filename_old(prompt, file_type):
|
| 167 |
central = pytz.timezone('US/Central')
|