Add discord bot

pull/58/head
Zack 2 years ago
parent 9f47cc2bff
commit 7168a31a6b

@ -9,12 +9,6 @@ from swarms.agents import OmniModalAgent
import gradio_client as grc import gradio_client as grc
from dspy import Program, Prompt, Finetune, Decompose from dspy import Program, Prompt, Finetune, Decompose
from dspy import Program, Prompt, Finetune, Decompose from dspy import Program, Prompt, Finetune, Decompose
from dspy.retrieval import retrieve
program = Program(
Decompose(
Prompt("I have 4 shirts that take 5hrs to dry long shoul")
)
grc.Client("Wawaa/omni_bot").deploy_discord() grc.Client("Wawaa/omni_bot").deploy_discord()
@ -57,7 +51,6 @@ def update_chat(user_input):
latest_image = get_latest_image() latest_image = get_latest_image()
if latest_image: if latest_image:
chat_history.append({"type": "image", "content": latest_image}) chat_history.append({"type": "image", "content": latest_image})
return render_chat(chat_history) return render_chat(chat_history)
# Function to render chat as HTML # Function to render chat as HTML

Loading…
Cancel
Save