asd

vinca·4일 전
0

pip3 install --upgrade pip
pip3 install google-cloud-speech
brew install portaudio
pip3 install pyaudio
2. TTS 설치
pip install pydub
pip install simpleaudio
brew install ffmpeg
pip install google-cloud-texttospeech
3. Flask 설치
pip install flask
4. Vertex AI 설치
pip install --upgrade google-cloud-aiplatform

body {
    font-family: Arial, sans-serif;
    background-color: #0f0f11;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    align-items: center;
    font-size: 0.9em; /* 기본 폰트 크기 줄임 */
}

h1 {
    color: #ededed;
    text-align: center;
    animation: glow 5s ease-in-out infinite; /* 애니메이션 적용 */
    font-size: 1.5em; /* 제목 크기 줄임 */
}

@keyframes glow {
    0% {
        text-shadow: 0 0 0.8px #fff, 0 0 0.8px #007bff, 0 0 2.4px #007bff, 0 0 4px #007bff, 0 0 8px #007bff;
    }
    50% {
        text-shadow: 0 0 1.6px #fff, 0 0 1.6px #007bff, 0 0 4.8px #007bff, 0 0 8px #007bff, 0 0 12px #007bff;
    }
    100% {
        text-shadow: 0 0 0.8px #fff, 0 0 0.8px #007bff, 0 0 2.4px #007bff, 0 0 4px #007bff, 0 0 8px #007bff;
    }
}

.chat-container {
    width: 40%; /* 너비 줄임 */
    max-width: 550px; /* 최대 너비 줄임 */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1); /* 그림자 크기 줄임 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 60vh; /* 높이 줄임 */
}

.chat-box {
    flex-grow: 1;
    padding: 10px; /* 패딩 줄임 */
    overflow-y: auto;
}

.message {
    margin-bottom: 10px; /* 마진 줄임 */
}

.user-message {
    text-align: right;
}

.bot-message {
    text-align: left;
}

.user-message .bubble {
    background-color: #007bff;
    color: white;
    display: inline-block;
    padding: 8px 12px; /* 패딩 줄임 */
    border-radius: 15px; /* 둥근 정도 유지 */
}

.bot-message .bubble {
    background-color: #e5e5e5b5;
    color: #333;
    display: inline-block;
    padding: 8px 12px; /* 패딩 줄임 */
    border-radius: 15px;
}

/* 버튼 및 파일 선택 */
.input-container {
    display: flex;
    justify-content: space-between;
    padding: 10px; /* 패딩 줄임 */
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.input-container button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px; /* 패딩 줄임 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px; /* 폰트 크기 줄임 */
}

.input-container button:hover {
    background-color: #0056b3;
}

/* 파일 선택 버튼 */
.input-container input[type="file"] {
    flex: 4;
    margin-right: 8px;
    padding: 8px; /* 패딩 줄임 */
    font-size: 14px; /* 폰트 크기 줄임 */
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    background-color: #f4f4f9;
    color: #333;
}

.input-container input[type="file"]::file-selector-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px; /* 패딩 줄임 */
    border-radius: 5px;
    cursor: pointer;
}

.input-container input[type="file"]::file-selector-button:hover {
    background-color: #0056b3;
}

.input-container input[type="file"]:hover {
    background-color: #e9ecef;
    border-color: #0056b3;
}

/* 파일 제거 버튼 */
.input-container button:nth-child(2) {
    background-color: #6b6a6a;
    color: white;
    padding: 8px 15px; /* 패딩 줄임 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 8px;
}

.input-container button:nth-child(2):hover {
    background-color: #2d2c2c;
}

/* 로딩 이미지 */
#wave-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* 크기 줄임 */
    height: 80px; /* 크기 줄임 */
    background: conic-gradient(from 0deg, rgba(255,0,150,0.8), rgba(0,204,255,0.8), rgba(255, 237, 38, 0.805));
    border-radius: 50%;
    animation: rotate-color 1s infinite;
}

@keyframes rotate-color {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 로딩 텍스트 */
#loading-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px; /* 폰트 크기 줄임 */
    color: #333;
    text-align: center;
    font-style: italic;
    font-weight: bold;
    
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px; /* 패딩 줄임 */
    border-radius: 20px;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.1); /* 그림자 크기 줄임 */
}

.hidden {
    display: none;
}

/* 음성인식 원 이미지 */
.sphere {
    width: 80px; /* 크기 줄임 */
    height: 80px; /* 크기 줄임 */
    background: radial-gradient(circle at 30% 30%, #ffdfff, #007bff);
    border-radius: 50%;
    position: relative;
    animation: rotate 2s infinite linear;
    box-shadow: 0 0 45px rgba(254, 151, 254, 0.6), 0 0 90px rgba(0, 123, 255, 0.8); /* 그림자 크기 줄임 */
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Modal 스타일링 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 15px; /* 패딩 줄임 */
    border: 1px solid #888;
    width: 70%; /* 크기 줄임 */
    max-width: 400px; /* 최대 너비 줄임 */
    text-align: center;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px; /* 크기 줄임 */
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 사용방법 버튼 스타일링 */
.usage-btn {
    background-color: #4CAF50;
    color: white;
    padding: 4px 20px; /* 패딩 줄임 */
    font-size: 14px; /* 폰트 크기 줄임 */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1); /* 그림자 크기 줄임 */
    transition: background-color 0.3s ease;
    margin-top: 10px; /* 여백 줄임 */
}

.usage-btn:hover {
    background-color: #26862b;
}

.usage-btn:active {
    background-color: #3e8e41;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}
profile
붉은 배 오색 딱다구리 개발자 🦃Cloud & DevOps

0개의 댓글