shukdevdatta123 commited on
Commit
355b2ca
·
verified ·
1 Parent(s): e41cc1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, {}, {"Or": Or, "And": And, "Not": Not, "x": symbols('x'), "y": symbols('y'), "z": symbols('z')})
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)