toecm commited on
Commit
d2f451b
·
verified ·
1 Parent(s): 9c19fa7

Update src/ux_agent.py

Browse files
Files changed (1) hide show
  1. src/ux_agent.py +12 -0
src/ux_agent.py CHANGED
@@ -400,6 +400,18 @@ class AgentUX:
400
  final_d, transcribed, clarification, tone, context, "",
401
  permanent_audio_path, pragmatics, sourceTag, clar_source, userKey
402
  )
 
 
 
 
 
 
 
 
 
 
 
 
403
  return f"🚀 Approved and Minted to {final_d}" if success else "❌ Local Save Failed", gr.update(visible=False), None
404
 
405
  def force_overwrite_logic(self, *args):
 
400
  final_d, transcribed, clarification, tone, context, "",
401
  permanent_audio_path, pragmatics, sourceTag, clar_source, userKey
402
  )
403
+
404
+ # 🟢 ACTUAL MINTING TRIGGER
405
+ if success:
406
+ payload = {
407
+ "original": transcribed,
408
+ "dialect": final_d,
409
+ "clarification": clarification,
410
+ "tone": tone
411
+ }
412
+ import threading
413
+ threading.Thread(target=self.trust.stamp_on_chain, args=(payload,), daemon=True).start()
414
+
415
  return f"🚀 Approved and Minted to {final_d}" if success else "❌ Local Save Failed", gr.update(visible=False), None
416
 
417
  def force_overwrite_logic(self, *args):