Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ def algorithms_circuits():
|
|
153 |
if boolean_expression:
|
154 |
try:
|
155 |
# Parse the input expression
|
156 |
-
expr = eval(boolean_expression, {}, {"
|
157 |
|
158 |
# Convert the formula to a circuit
|
159 |
circuit = formula_to_circuit(expr)
|
|
|
153 |
if boolean_expression:
|
154 |
try:
|
155 |
# Parse the input expression
|
156 |
+
expr = eval(boolean_expression, {}, {"∨": Or, "∧": And, "¬": Not, "x": symbols('x'), "y": symbols('y'), "z": symbols('z')})
|
157 |
|
158 |
# Convert the formula to a circuit
|
159 |
circuit = formula_to_circuit(expr)
|