SamSankar commited on
Commit
316f619
·
verified ·
1 Parent(s): 1ba557f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. server/app.py +6 -4
server/app.py CHANGED
@@ -72,12 +72,14 @@ print(result["reward"], result["is_hallucination"])
72
  ### Python SDK
73
 
74
  ```python
75
- pip install hallucination-guard-sdk # coming soon
76
- from hallucination_guard import HallucinationGuardEnv
77
  env = HallucinationGuardEnv()
78
- obs = env.reset()
79
- result = env.step(obs["question"], obs["context"], your_model)
80
  ```
 
 
81
  """,
82
  version="3.0.0",
83
  contact={"name": "HallucinationGuard", "url": "https://huggingface.co/spaces/SamSankar/hallucination-guard-env"},
 
72
  ### Python SDK
73
 
74
  ```python
75
+ pip install openenv-halluguard
76
+ from openenv_halluguard import HallucinationGuardEnv
77
  env = HallucinationGuardEnv()
78
+ results = env.evaluate(your_model_fn, episodes=5)
79
+ env.print_report(results)
80
  ```
81
+
82
+ ### HallucinationGuard - [Website](https://huggingface.co/spaces/SamSankar/hallucination-guard-env) · [PyPI](https://pypi.org/project/openenv-halluguard/) · [Docs](https://samsankar-hallucination-guard-env.hf.space/docs)
83
  """,
84
  version="3.0.0",
85
  contact={"name": "HallucinationGuard", "url": "https://huggingface.co/spaces/SamSankar/hallucination-guard-env"},