Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -25,10 +25,10 @@ It includes three main applications:
|
|
| 25 |
|
| 26 |
* **Interactive Fine-Tuning:** Use a Gradio interface to select your favorite Hacker News titles and fine-tune the `google/embeddinggemma-300m` model on your preferences.
|
| 27 |
* **Semantic Search Evaluation:** See the immediate impact of your training by comparing semantic search results before and after fine-tuning.
|
| 28 |
-
* **Live "Vibe Check":** Input any news title or text to get a real-time similarity score (its "vibe") against your personalized anchor.
|
| 29 |
-
* **Interactive CLI:** A terminal-based mood reader with color-coded output, scrolling, and live refresh capabilities.
|
| 30 |
-
* **Hacker News Mood Reader:** View the live Hacker News feed with each story scored and color-coded based on the current model's understanding of your taste.
|
| 31 |
* **Data & Model Management:** Easily import additional training data, export the generated dataset, and download the fine-tuned model as a ZIP file.
|
|
|
|
|
|
|
|
|
|
| 32 |
* **Standalone Flask App:** A lightweight, read-only web app to continuously display the scored HN feed, perfect for simple deployment.
|
| 33 |
|
| 34 |
---
|
|
@@ -170,4 +170,4 @@ Key parameters can be adjusted in `config.py`:
|
|
| 170 |
βββ templates/ # HTML templates for the Flask app
|
| 171 |
βββ index.html
|
| 172 |
βββ error.html
|
| 173 |
-
```
|
|
|
|
| 25 |
|
| 26 |
* **Interactive Fine-Tuning:** Use a Gradio interface to select your favorite Hacker News titles and fine-tune the `google/embeddinggemma-300m` model on your preferences.
|
| 27 |
* **Semantic Search Evaluation:** See the immediate impact of your training by comparing semantic search results before and after fine-tuning.
|
|
|
|
|
|
|
|
|
|
| 28 |
* **Data & Model Management:** Easily import additional training data, export the generated dataset, and download the fine-tuned model as a ZIP file.
|
| 29 |
+
* **Hacker News Similarity Check:** View the live Hacker News feed with each story scored and color-coded based on the current model's understanding of your taste.
|
| 30 |
+
* **Similarity Lamp:** Input any news title or text to get a real-time similarity score (its "vibe") against your personalized anchor.
|
| 31 |
+
* **Interactive CLI:** A terminal-based mood reader with color-coded output, scrolling, and live refresh capabilities.
|
| 32 |
* **Standalone Flask App:** A lightweight, read-only web app to continuously display the scored HN feed, perfect for simple deployment.
|
| 33 |
|
| 34 |
---
|
|
|
|
| 170 |
βββ templates/ # HTML templates for the Flask app
|
| 171 |
βββ index.html
|
| 172 |
βββ error.html
|
| 173 |
+
```
|
app.py
CHANGED
|
@@ -480,15 +480,15 @@ def build_interface() -> gr.Blocks:
|
|
| 480 |
outputs=[push_status]
|
| 481 |
)
|
| 482 |
|
| 483 |
-
with gr.Tab("π° Hacker News
|
| 484 |
with gr.Column():
|
| 485 |
gr.Markdown(f"## Live Hacker News Feed Vibe")
|
| 486 |
-
gr.Markdown(f"This feed uses the current model (base or fine-tuned) to score the vibe of live
|
| 487 |
feed_output = gr.Markdown(value="Click 'Refresh Feed' to load stories.", label="Latest Stories")
|
| 488 |
refresh_button = gr.Button("Refresh Feed π", size="lg", variant="primary")
|
| 489 |
refresh_button.click(fn=mood_feed_wrapper, inputs=[session_state], outputs=feed_output)
|
| 490 |
|
| 491 |
-
with gr.Tab("π‘ Similarity
|
| 492 |
with gr.Column():
|
| 493 |
gr.Markdown(f"## News Similarity Check")
|
| 494 |
gr.Markdown(f"Enter text to see its similarity to **`{AppConfig.QUERY_ANCHOR}`**.\n**Vibe Key:** Green = High, Red = Low")
|
|
|
|
| 480 |
outputs=[push_status]
|
| 481 |
)
|
| 482 |
|
| 483 |
+
with gr.Tab("π° Hacker News Similarity Check"):
|
| 484 |
with gr.Column():
|
| 485 |
gr.Markdown(f"## Live Hacker News Feed Vibe")
|
| 486 |
+
gr.Markdown(f"This feed uses the current model (base or fine-tuned) to score the vibe of live Hacker News stories against **`{AppConfig.QUERY_ANCHOR}`**.")
|
| 487 |
feed_output = gr.Markdown(value="Click 'Refresh Feed' to load stories.", label="Latest Stories")
|
| 488 |
refresh_button = gr.Button("Refresh Feed π", size="lg", variant="primary")
|
| 489 |
refresh_button.click(fn=mood_feed_wrapper, inputs=[session_state], outputs=feed_output)
|
| 490 |
|
| 491 |
+
with gr.Tab("π‘ Similarity Lamp"):
|
| 492 |
with gr.Column():
|
| 493 |
gr.Markdown(f"## News Similarity Check")
|
| 494 |
gr.Markdown(f"Enter text to see its similarity to **`{AppConfig.QUERY_ANCHOR}`**.\n**Vibe Key:** Green = High, Red = Low")
|