DEBO-V1 / bots /debate_bot.py
Unggi's picture
add vocal_app.py
5f3392e
raw
history blame contribute delete
864 Bytes
import re
import random
from langchain.prompts import PromptTemplate
from modules.gpt_modules import gpt_call
from .normal_debate import nomal_debator
from .one_to_one_debate import one_to_one_debator
#############################################
# Debate bot setting
#############################################
def debate_bot(prompt, history="", debate_subject="", bot_role="", history_num=0):
if bot_role == "ํ† ๋ก ":
#bot_response = nomal_debator(prompt, history, debate_subject, bot_role, history_num)
bot_response = one_to_one_debator(prompt, history, debate_subject, bot_role, history_num)
elif bot_role == "์ฃผ์ œ ์ •์˜":
pass
elif bot_role == "POI ์—ฐ์Šต":
pass
elif bot_role == "์—ญํ•  ์ถ”์ฒœ":
pass
elif bot_role == "์ฃผ์žฅ ๋น„ํŒ":
pass
else:
print("bot_role error")