Former-commit-id: 5bf9aafe95
group-chat
Kye 1 year ago
parent 57d6b1c664
commit bce4c0a24a

@ -46,5 +46,9 @@ class MultiAgentDebate:
self.task = task
def format_results(self, results):
formatted_results = "\n".join([f"Agent {result['agent']} responded: {result['response']}" for result in results])
formatted_results = "\n".join(
[f"Agent {result['agent']} responded: {result['response']}" for result in results]
)
return formatted_results

@ -126,8 +126,6 @@ class WebpageQATool(BaseTool):
async def _arun(self, url: str, question: str) -> str:
raise NotImplementedError
# # @tool
# code_intepret = CodeInterpreter()
import interpreter
@ -198,3 +196,4 @@ def VQAinference(self, inputs):
return answer

@ -8,6 +8,7 @@ from datetime import datetime
from pathlib import Path
from typing import Callable, Dict, List, Literal, Optional, Tuple, Union
from langchain.tools import tool
from ptrace.debugger import (
NewProcessEvent,
ProcessExecution,
@ -24,9 +25,6 @@ from swarms.tools.base import BaseToolSet, SessionGetter, ToolScope, tool
from swarms.utils.logger import logger
from swarms.utils.main import ANSI, Color, Style # test
from langchain.tools import tool
#helpers
PipeType = Union[Literal["stdout"], Literal["stderr"]]

@ -1,10 +1,12 @@
#speech to text tool
import os
import subprocess
import whisperx
from pydub import AudioSegment
from pytube import YouTube
import whisperx
import subprocess
class SpeechToText:
def __init__(

Loading…
Cancel
Save