Spaces:
Runtime error
Runtime error
added backdooring
Browse files108 unmodified lines10911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020116 unmodified lines218219220221222223224108 unmodified linesreturn question, final_answer, steps_solution, correct_answer,plotfile# Custom CSS for enhanced design (unchanged)custom_css = """body {background-color: #fafafa;font-family: 'Open Sans', sans-serif;}.gradio-container {background-color: #ffffff;border: 3px solid #007acc;border-radius: 15px;padding: 20px;box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);max-width: 800px;margin: 50px auto;}h1 {font-family: 'Poppins', sans-serif;color: #007acc;font-weight: bold;font-size: 32px;text-align: center;margin-bottom: 20px;}p {font-family: 'Roboto', sans-serif;font-size: 18px;color: #333;text-align: center;margin-bottom: 15px;}input, textarea {font-family: 'Montserrat', sans-serif;font-size: 16px;padding: 10px;border: 2px solid #007acc;border-radius: 10px;background-color: #f1f8ff;margin-bottom: 15px;}#math_question, #correct_answer {font-size: 20px;font-family: 'Poppins', sans-serif;font-weight: 500px;color: #007acc;margin-bottom: 5px;display: inline-block;}textarea {min-height: 150px;}.gr-button-primary {background-color: #007acc !important;color: white !important;border-radius: 10px !important;font-size: 18px !important;font-weight: bold !important;padding: 10px 20px !important;font-family: 'Montserrat', sans-serif !important;transition: background-color 0.3s ease !important;}.gr-button-primary:hover {background-color: #005f99 !important;}.gr-button-secondary {background-color: #f44336 !important;color: white !important;border-radius: 10px !important;font-size: 18px !important;font-weight: bold !important;padding: 10px 20px !important;font-family: 'Montserrat', sans-serif !important;transition: background-color 0.3s ease !important;}.gr-button-secondary:hover {background-color: #c62828 !important;}.gr-output {background-color: #e0f7fa;border: 2px solid #007acc;border-radius: 10px;padding: 15px;font-size: 16px;font-family: 'Roboto', sans-serif;font-weight: bold;color: #00796b;}"""# Define the directory pathflagging_dir = "./flagged_data"16 unmodified lines],title="🔢 Math Question Solver",description="Enter a math question to get the model's majority-voted answer and steps to solve the problem.",css=custom_css, # Apply custom CSSflagging_dir=flagging_dir, # Directory to save flagged dataallow_flagging="auto" # Allow users to auto flag data)108 unmodified lines10911011111211311416 unmodified lines131132133134135136137108 unmodified linesreturn question, final_answer, steps_solution, correct_answer,plotfile# Custom CSS for enhanced design (unchanged)# Define the directory pathflagging_dir = "./flagged_data"16 unmodified lines],title="🔢 Math Question Solver",description="Enter a math question to get the model's majority-voted answer and steps to solve the problem.",# Apply custom CSSflagging_dir=flagging_dir, # Directory to save flagged dataallow_flagging="auto" # Allow users to auto flag data)
app.py+1-88