Skip to content

Commit

Permalink
fix: unused env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Morriz committed Apr 4, 2024
1 parent 853d5b5 commit fafce12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@ Try it on [Streamlit](https://indy-news.streamlit.app/)!

## Search for relevant independent media outlets or videos covering a topic

Contains both a streamlit app and a FastAPI module. The app uses the following *SMART* api endpoints:
Contains both a streamlit app and a FastAPI module. The app uses the following _SMART_ api endpoints:

- [/media](http://127.0.0.1:8000/media?query=israel)
- [/youtube](http://127.0.0.1:8000/youtube?query=israel)

When I say smart I mean that the search tech used is:

- vector db
- hybrid bm25 + vector retriever

It also contains some dumb endpoints that only match input against the "name" property:

- [/allsides](http://127.0.0.1:8000/allsides?query=israel)
- [/mediabiasfactcheck](http://127.0.0.1:8000/mediabiasfactcheck?query=israel)

Expand All @@ -25,13 +28,14 @@ It also contains some dumb endpoints that only match input against the "name" pr
### Original sources used

The following got normalized and ended up in all.csv:

- [libguides.rowan.edu](https://libguides.rowan.edu)
- [localfutures.org](https://localfutures.org)
- [trustworthymedia.org](https://trustworthymedia.org)
- some individuals and teams that I esteem and follow myself ;)

### Dev instructions

Run streamlit locally: `.venv/bin/streamlit run streamlit.py`
Run streamlit locally: `.venv/bin/streamlit run Home.py`

Run api locally: `.venv/bin/uvicorn --host "0.0.0.0" -p 8088`
Run api locally: `.venv/bin/uvicorn --host "0.0.0.0" -p 8088`
1 change: 0 additions & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from api.tools.youtube import Video, search_youtube_channel
from lib.auth import verify_apikey

api_token = os.environ["API_KEY"]
app = FastAPI()


Expand Down

0 comments on commit fafce12

Please sign in to comment.