Spaces:
Build error
Build error
Update app.py
Browse files595 unmodified lines596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705595 unmodified linesreturn gr.update(value=chatbot)# response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()# return response_text"""css =.gradio-container {width: 90%; /* Set the width as a percentage of the viewport */max-width: 1200px; /* Optional: Set a maximum width */margin: 0 auto; /* Center the container horizontally */}.gr-chatbot {/* Custom styles for the Chatbot component */border: 1px solid #ccc;border-radius: 10px;padding: 10px;background-color: #f9f9f9;width: 100%;height: 600px; /* Adjust the height as needed */overflow-y: auto; /* Add scroll if the content exceeds the height */}#submit, #clear {display: inline-block;margin-right: 10px;}.gr-button {height: 40px; /* Adjust the height as needed */width:100px;}.message-buttons-right{display: none !important;}.gr-audio {width: 30px;height: 30px;border-radius: 50%;background-size: cover;background-position: center;margin-left: 10px;cursor: pointer;}.custom-button {/* background-color: #4CAF50; Initial Green */border: none;color: black;padding: 15px 32px;text-align: center;text-decoration: none;display: inline-block;font-family : Calibri;font-size: 11px;margin: 4px 2px;width: 50px; /* Set width to 50px */height: 100px; /* Set height to 50px */transition: background-color 0.4s, transform 0.5s ease-in-out; /* Smooth transition */cursor: pointer;}.custom-button:hover {/* background-color: #45a049; Darker Green on hover */transform: scale(1.1); /* Scale up slightly on hover */}@keyframes button-animation {0% { transform: scale(1); }50% { transform: scale(1.1); }100% { transform: scale(1); }}#button2 {background-color: "yellow";/* The rest of the CSS is similar to button1 */}#button2 {background-color: "red";/* The rest of the CSS is similar to button1 */}#button3 {background-color: "blue";/* The rest of the CSS is similar to button1 */}#button4 {background-color: "green";/* The rest of the CSS is similar to button1 */}#button5 {background-color: "purple";/* The rest of the CSS is similar to button1 */}.logout-link {position: fixed;top: 10px;right: 50px;width:50px;font-size: 14px;color: #007BFF;background: none;border: none;cursor: pointer;text-decoration: underline;}"""def submit_feedback(feedback, chatbot):gr.Info("Thank you for your feedback.")595 unmodified lines596597598599600601595 unmodified linesreturn gr.update(value=chatbot)# response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()# return response_textdef submit_feedback(feedback, chatbot):gr.Info("Thank you for your feedback.")
app.py-104