kevinhug commited on
Commit
21d7fc9
·
1 Parent(s): c09f094

example output

Browse files
Files changed (2) hide show
  1. app.py +9 -6
  2. pii.py +1 -1
app.py CHANGED
@@ -903,10 +903,11 @@ For example, Comcast reduced repeat service calls by 17% after deploying entity
903
  gr.Markdown("""
904
  Example Output
905
  =========
 
906
  GUARDRAILED:
907
- He Hua (<PERSON>) Director
908
909
- <PHONE_NUMBER>
910
 
911
  Alternative Address Format:
912
  Xiongmao Ave West Section, Jinniu District (listed in some records as 610016 postcode)
@@ -914,11 +915,13 @@ GUARDRAILED:
914
 
915
  Best Viewing: Before 9:00 AM during summer hours (7:30 AM-5:00 PM)
916
 
917
- Caretaker: <Caretaker_0>"Grandpa <PERSON>")
918
 
919
  Additional Contacts
920
- Charitable Donations: <PHONE_NUMBER>
921
- Dining Reservations: <PHONE_NUMBER>
 
 
922
 
923
  "Is your personal banking AI trained on customer conversations—or customer identities?"
924
  ===========
 
903
  gr.Markdown("""
904
  Example Output
905
  =========
906
+ ```
907
  GUARDRAILED:
908
+ <name_0> (<name_1>) Director
909
+ <email_2>
910
+ <phone_3>
911
 
912
  Alternative Address Format:
913
  Xiongmao Ave West Section, Jinniu District (listed in some records as 610016 postcode)
 
915
 
916
  Best Viewing: Before 9:00 AM during summer hours (7:30 AM-5:00 PM)
917
 
918
+ Caretaker: <name_5> ("<PERSON>)
919
 
920
  Additional Contacts
921
+ Charitable Donations: <phone_3>
922
+ Dining Reservations: <phone_7>
923
+
924
+ ```
925
 
926
  "Is your personal banking AI trained on customer conversations—or customer identities?"
927
  ===========
pii.py CHANGED
@@ -21,7 +21,7 @@ client = Groq(api_key=os.getenv("GROQ_API_KEY"))
21
  # Enable instructor patches for Groq client
22
  client = instructor.from_groq(client)
23
 
24
- llm = 'llama-3.1-8b-instant' if os.getenv("GROQ_API_KEY") else "llama3.2"
25
 
26
 
27
  class PIIData(BaseModel):
 
21
  # Enable instructor patches for Groq client
22
  client = instructor.from_groq(client)
23
 
24
+ llm = 'llama-3.1-8b-instant' if os.getenv("GROQ_API_KEY") else "qwen2.5"
25
 
26
 
27
  class PIIData(BaseModel):