neuralworm commited on
Commit
8758515
·
verified ·
1 Parent(s): 4c9f0fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -155,7 +155,10 @@ def run_analysis(query: str, translate: bool, process_verses: int, results_per_v
155
  output_lines.append(f"\n*Translation: \"{translation_str}\"*")
156
  output_lines.append("")
157
 
158
- calc_str = f"[{verse_sum}] ^ [{power_result}] → [G_target:{main_target_sum}]"
 
 
 
159
  format_matches(main_matches, "Main Resonance", calc_str)
160
 
161
  if xor_depth > 0:
 
155
  output_lines.append(f"\n*Translation: \"{translation_str}\"*")
156
  output_lines.append("")
157
 
158
+ if power_result!=0:
159
+ calc_str = f"[{verse_sum}] ^ [{power_result}] → [G_target:{main_target_sum}]"
160
+ elif power_result==0:
161
+ calc_str = f"[{verse_sum}] ^ [{query_value}] → [G_target:{main_target_sum}]"
162
  format_matches(main_matches, "Main Resonance", calc_str)
163
 
164
  if xor_depth > 0: