| import gradio as gr | |
| from ai import generate_chat | |
| def response(message, history): | |
| return "챗봇이 미완성 상태입니다." | |
| gr.ChatInterface( | |
| fn=response, | |
| textbox=gr.Textbox(placeholder="내용을 입력하세요.", container=False, scale=7), | |
| title="이거4조", | |
| description="당신의 반려견을 위한 진찰 및 조언 서비스를 제공합니다.", | |
| theme="soft", | |
| examples=[["반려견이 열이 있어요."], ["반려견의 피부에 염증이 있어요."], ["근처 동물병원을 추천해 주세요."]], | |
| retry_btn="재전송", | |
| undo_btn="이전 대화 삭제", | |
| clear_btn="전체 대화 삭제" | |
| ).launch() |