Spaces:
Runtime error
Runtime error
title: Template Final Assignment - frenchtoast.dev | |
emoji: π΅π»ββοΈ | |
colorFrom: indigo | |
colorTo: indigo | |
sdk: gradio | |
sdk_version: 5.25.2 | |
app_file: app.py | |
pinned: false | |
hf_oauth: true | |
# optional, default duration is 8 hours/480 minutes. Max duration is 30 days/43200 minutes. | |
hf_oauth_expiration_minutes: 480 | |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
# HF agent course final assigment | |
## local running | |
Create a venv | |
Install requirements | |
create a .env file (see env.example) | |
start with `python app.py` | |
DuckDuckGo and GoogleSearch have too many rate limit, | |
This code assume that a local running instance of searxng is on http://localhost:8888 | |
On windows run it with: | |
$PORT=8888 | |
docker run --rm ` | |
-p ${PORT}:8080 ` | |
-v "${PWD}/etcsearxng:/etc/searxng" ` | |
-e "BASE_URL=http://localhost:$PORT/" ` | |
-e "INSTANCE_NAME=my-instance" ` | |
searxng/searxng | |
be sure to allow the json format in /etc/seraxng/settings.yml | |