Spaces:
Sleeping
Sleeping
deploy at 2024-08-22 13:42:37.454278
Browse files
README.md
CHANGED
|
@@ -1,17 +1,25 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: π
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: red
|
| 6 |
sdk: docker
|
| 7 |
-
app_file:
|
| 8 |
pinned: false
|
| 9 |
termination_grace_period: 2m
|
| 10 |
---
|
|
|
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
This is a simple frontend for Vespa search engine. It is built using [FastHTML](https://www.fastht.ml/) and written in pure Python.
|
|
|
|
| 15 |
|
| 16 |
Search page | Login page | Query logs
|
| 17 |
:-------------------------:|:-------------------------:|:-------------------------:
|
|
@@ -128,5 +136,6 @@ This deployment option is free. The deployment script is shamelessly copied from
|
|
| 128 |
1. Get a huggingface token with `write` permissions. You can do this by going to your [Huggingface profile](https://huggingface.co/settings/tokens) and create a new token.
|
| 129 |
2. Set the `HF_TOKEN` environment variable to the token you just created.
|
| 130 |
3. Run `python deploy_hf.py <your-space-name> [--private true]` to deploy the app to Huggingface Spaces.
|
|
|
|
| 131 |
|
| 132 |
-
### Go build
|
|
|
|
| 1 |
---
|
| 2 |
+
title: vespa-engine/fasthtml-vespa
|
| 3 |
emoji: π
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: red
|
| 6 |
sdk: docker
|
| 7 |
+
app_file: main.py
|
| 8 |
pinned: false
|
| 9 |
termination_grace_period: 2m
|
| 10 |
---
|
| 11 |
+
<!-- Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
|
| 12 |
|
| 13 |
+
<picture>
|
| 14 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://vespa.ai/assets/vespa-ai-logo-heather.svg">
|
| 15 |
+
<source media="(prefers-color-scheme: light)" srcset="https://vespa.ai/assets/vespa-ai-logo-rock.svg">
|
| 16 |
+
<img alt="#Vespa" width="200" src="https://vespa.ai/assets/vespa-ai-logo-rock.svg" style="margin-bottom: 25px;">
|
| 17 |
+
</picture>
|
| 18 |
+
|
| 19 |
+
# FastHTML Vespa frontend
|
| 20 |
|
| 21 |
This is a simple frontend for Vespa search engine. It is built using [FastHTML](https://www.fastht.ml/) and written in pure Python.
|
| 22 |
+
Check out the [live demo](https://huggingface.co/spaces/vespa-engine/fasthtml-vespa) on Huggingface Spaces.
|
| 23 |
|
| 24 |
Search page | Login page | Query logs
|
| 25 |
:-------------------------:|:-------------------------:|:-------------------------:
|
|
|
|
| 136 |
1. Get a huggingface token with `write` permissions. You can do this by going to your [Huggingface profile](https://huggingface.co/settings/tokens) and create a new token.
|
| 137 |
2. Set the `HF_TOKEN` environment variable to the token you just created.
|
| 138 |
3. Run `python deploy_hf.py <your-space-name> [--private true]` to deploy the app to Huggingface Spaces.
|
| 139 |
+
4. Remember to add `VESPA_APP_URL` and `VESPA_CLOUD_SECRET_TOKEN` to the environment variables in the [Huggingface Spaces settings.](https://huggingface.co/docs/hub/en/spaces-overview#managing-secrets)
|
| 140 |
|
| 141 |
+
### Go build some cool Vespa apps! π
|