title | app_file | sdk | sdk_version |
---|---|---|---|
Filtir |
app.py |
gradio |
4.19.0 |
This repo contains the Filtir pipeline for claim extraction and fact-checking.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
In order to run the code you need to set up the following keys and add them to .env:
- OPENAI_API_KEY - used to call the OpenAI API
- COHERE_API_KEY and WEAVIATE_API_KEY - used for Wikipedia search
- GOOGLE_CLOUD_API_KEY and GOOGLE_CUSTOM_SEARCH_ENGINE_ID - used for Google search
python run_pipeline.py --file example.txt --model gpt-4-1106-preview
python app.py
Demo available here