Rename examples/example_01_basic_run.py to example_01_basic_run.py

Move example to root
This commit is contained in:
PSBigBig 2025-06-11 12:19:05 +08:00 committed by GitHub
parent 9ff4627c61
commit 74f2f86148
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,30 +0,0 @@
# example_01_basic_run.py
import os
import sys
# Add WFGY SDK path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "WFGY")))
from wfgy_core import WFGYRunner
# Initialize the WFGY runner
runner = WFGYRunner()
# Define a hilarious input prompt
prompt = "Why doesn't AI like to take showers?"
# Run WFGY processing
before_output, after_output, residue_score = runner.run(prompt)
# Display results
print("=== 🧼 Prompt ===")
print(prompt)
print("\n=== 🤖 Before WFGY ===")
print(before_output)
print("\n=== 🚿 After WFGY ===")
print(after_output)
print(f"\n=== 📊 Semantic Residue Score (B) ===\n{residue_score:.4f}")