mirror of
https://github.com/onestardao/WFGY.git
synced 2026-04-28 19:50:17 +00:00
Rename examples/example_01_basic_run.py to example_01_basic_run.py
Move example to root
This commit is contained in:
parent
9ff4627c61
commit
74f2f86148
1 changed files with 0 additions and 0 deletions
|
|
@ -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}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue