José Eliel Camargo Molina commited on
Commit
a5105ee
·
1 Parent(s): dd7da0f

finetuning

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -321,7 +321,11 @@ def generate_lagrangian(input_text):
321
 
322
  def generate_field(sp, su2, su3, u1):
323
  # Initialize components list
324
- components = [f"FIELD SPIN={sp}"]
 
 
 
 
325
 
326
  # Conditionally add each component
327
  if su2 != "$1$":
@@ -349,7 +353,7 @@ def main():
349
  su2_options = ["$1$", "$2$", "$3$"]
350
  su3_options = ["$1$", "$3$", "$\\bar{3}$"]
351
  u1_options = ["-1","-2/3", "-1/2", "-1/3", "0","1/3" ,"1/2", "2/3", "1"]
352
- spin_options = ["1", "1/2"]
353
 
354
  # Initialize or update session state variables
355
  if 'count' not in st.session_state:
 
321
 
322
  def generate_field(sp, su2, su3, u1):
323
  # Initialize components list
324
+
325
+ if sp == "0":
326
+ components = [f"FIELD SPIN={sp}"]
327
+ else:
328
+ components = [f"FIELD SPIN={sp} HEL=1"]
329
 
330
  # Conditionally add each component
331
  if su2 != "$1$":
 
353
  su2_options = ["$1$", "$2$", "$3$"]
354
  su3_options = ["$1$", "$3$", "$\\bar{3}$"]
355
  u1_options = ["-1","-2/3", "-1/2", "-1/3", "0","1/3" ,"1/2", "2/3", "1"]
356
+ spin_options = ["0", "1/2"]
357
 
358
  # Initialize or update session state variables
359
  if 'count' not in st.session_state: