Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -578,63 +578,63 @@ import streamlit as st
|
|
| 578 |
def StreamMedChatResponse(topic):
|
| 579 |
st.write(f"Showing resources or questions related to: {topic}")
|
| 580 |
|
| 581 |
-
def
|
| 582 |
-
with st.expander("
|
| 583 |
-
st.markdown("
|
| 584 |
|
| 585 |
-
# Define
|
| 586 |
descriptions = {
|
| 587 |
-
"
|
| 588 |
-
"
|
| 589 |
-
"
|
| 590 |
-
"
|
| 591 |
-
"
|
| 592 |
-
"
|
| 593 |
-
"
|
| 594 |
-
"
|
| 595 |
}
|
| 596 |
|
| 597 |
# Create columns
|
| 598 |
col1, col2, col3, col4 = st.columns([1, 1, 1, 1], gap="small")
|
| 599 |
|
| 600 |
# Add buttons to columns
|
| 601 |
-
if col1.button("
|
| 602 |
-
|
| 603 |
|
| 604 |
-
if col2.button("
|
| 605 |
-
|
| 606 |
|
| 607 |
-
if col3.button("
|
| 608 |
-
|
| 609 |
|
| 610 |
-
if col4.button("
|
| 611 |
-
|
| 612 |
|
| 613 |
col5, col6, col7, col8 = st.columns([1, 1, 1, 1], gap="small")
|
| 614 |
|
| 615 |
-
if col5.button("
|
| 616 |
-
|
| 617 |
|
| 618 |
-
if col6.button("
|
| 619 |
-
|
| 620 |
|
| 621 |
-
if col7.button("
|
| 622 |
-
|
|
|
|
|
|
|
|
|
|
| 623 |
|
| 624 |
-
if col8.button("Ramipril ๐"):
|
| 625 |
-
StreamLLMChatResponse(descriptions["Ramipril ๐"])
|
| 626 |
-
|
| 627 |
-
|
| 628 |
|
| 629 |
# 17. Main
|
| 630 |
def main():
|
| 631 |
|
| 632 |
-
st.title("
|
| 633 |
prompt = f"Write ten funny jokes that are tweet length stories that make you laugh. Show as markdown outline with emojis for each."
|
| 634 |
|
| 635 |
# Add Wit and Humor buttons
|
| 636 |
# add_witty_humor_buttons()
|
| 637 |
-
|
|
|
|
| 638 |
|
| 639 |
example_input = st.text_input("Enter your example text:", value=prompt, help="Enter text to get a response from DromeLlama.")
|
| 640 |
if st.button("Run Prompt With DromeLlama", help="Click to run the prompt."):
|
|
|
|
| 578 |
def StreamMedChatResponse(topic):
|
| 579 |
st.write(f"Showing resources or questions related to: {topic}")
|
| 580 |
|
| 581 |
+
def add_multi_system_agent_topics():
|
| 582 |
+
with st.expander("Multi-System Agent AI Topics ๐ค", expanded=True):
|
| 583 |
+
st.markdown("๐ค **Explore Multi-System Agent AI Topics**: This section provides a variety of topics related to multi-system agent AI systems.")
|
| 584 |
|
| 585 |
+
# Define multi-system agent AI topics and descriptions
|
| 586 |
descriptions = {
|
| 587 |
+
"Reinforcement Learning ๐ฎ": "Questions related to reinforcement learning algorithms and applications ๐น๏ธ",
|
| 588 |
+
"Natural Language Processing ๐ฃ๏ธ": "Questions about natural language processing techniques and chatbot development ๐จ๏ธ",
|
| 589 |
+
"Multi-Agent Systems ๐ค": "Questions pertaining to multi-agent systems and cooperative AI interactions ๐ค",
|
| 590 |
+
"Conversational AI ๐จ๏ธ": "Questions on building conversational AI agents and chatbots for various platforms ๐ฌ",
|
| 591 |
+
"Distributed AI Systems ๐": "Questions about distributed AI systems and their implementation in networked environments ๐",
|
| 592 |
+
"AI Ethics and Bias ๐ค": "Questions related to ethics and bias considerations in AI systems and decision-making ๐ง ",
|
| 593 |
+
"AI in Healthcare ๐ฅ": "Questions about the application of AI in healthcare and medical diagnosis ๐ฉบ",
|
| 594 |
+
"AI in Autonomous Vehicles ๐": "Questions on the use of AI in autonomous vehicles and self-driving technology ๐"
|
| 595 |
}
|
| 596 |
|
| 597 |
# Create columns
|
| 598 |
col1, col2, col3, col4 = st.columns([1, 1, 1, 1], gap="small")
|
| 599 |
|
| 600 |
# Add buttons to columns
|
| 601 |
+
if col1.button("Reinforcement Learning ๐ฎ"):
|
| 602 |
+
st.write(descriptions["Reinforcement Learning ๐ฎ"])
|
| 603 |
|
| 604 |
+
if col2.button("Natural Language Processing ๐ฃ๏ธ"):
|
| 605 |
+
st.write(descriptions["Natural Language Processing ๐ฃ๏ธ"])
|
| 606 |
|
| 607 |
+
if col3.button("Multi-Agent Systems ๐ค"):
|
| 608 |
+
st.write(descriptions["Multi-Agent Systems ๐ค"])
|
| 609 |
|
| 610 |
+
if col4.button("Conversational AI ๐จ๏ธ"):
|
| 611 |
+
st.write(descriptions["Conversational AI ๐จ๏ธ"])
|
| 612 |
|
| 613 |
col5, col6, col7, col8 = st.columns([1, 1, 1, 1], gap="small")
|
| 614 |
|
| 615 |
+
if col5.button("Distributed AI Systems ๐"):
|
| 616 |
+
st.write(descriptions["Distributed AI Systems ๐"])
|
| 617 |
|
| 618 |
+
if col6.button("AI Ethics and Bias ๐ค"):
|
| 619 |
+
st.write(descriptions["AI Ethics and Bias ๐ค"])
|
| 620 |
|
| 621 |
+
if col7.button("AI in Healthcare ๐ฅ"):
|
| 622 |
+
st.write(descriptions["AI in Healthcare ๐ฅ"])
|
| 623 |
+
|
| 624 |
+
if col8.button("AI in Autonomous Vehicles ๐"):
|
| 625 |
+
st.write(descriptions["AI in Autonomous Vehicles ๐"])
|
| 626 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 627 |
|
| 628 |
# 17. Main
|
| 629 |
def main():
|
| 630 |
|
| 631 |
+
st.title("Try Some Topics:")
|
| 632 |
prompt = f"Write ten funny jokes that are tweet length stories that make you laugh. Show as markdown outline with emojis for each."
|
| 633 |
|
| 634 |
# Add Wit and Humor buttons
|
| 635 |
# add_witty_humor_buttons()
|
| 636 |
+
# Calling the function to add the multi-system agent AI topics buttons
|
| 637 |
+
add_multi_system_agent_topics()
|
| 638 |
|
| 639 |
example_input = st.text_input("Enter your example text:", value=prompt, help="Enter text to get a response from DromeLlama.")
|
| 640 |
if st.button("Run Prompt With DromeLlama", help="Click to run the prompt."):
|