Spaces:
Running
Running
ming
commited on
Commit
Β·
8aac05c
1
Parent(s):
3777705
docs: Add Hugging Face Spaces live demo URL to README
Browse files- Add live demo link: https://huggingface.co/spaces/colin730/SummarizerApp
- Update usage examples with actual HF Space URL
- Replace placeholder URLs with real deployment URL
README.md
CHANGED
|
@@ -13,6 +13,8 @@ app_port: 7860
|
|
| 13 |
|
| 14 |
A FastAPI-based text summarization service powered by Ollama and Llama 3.2 1B model.
|
| 15 |
|
|
|
|
|
|
|
| 16 |
## π Features
|
| 17 |
|
| 18 |
- **Fast text summarization** using local LLM inference
|
|
@@ -105,7 +107,7 @@ import requests
|
|
| 105 |
|
| 106 |
# Summarize text
|
| 107 |
response = requests.post(
|
| 108 |
-
"https://
|
| 109 |
json={
|
| 110 |
"text": "Your long article or text here...",
|
| 111 |
"max_tokens": 256
|
|
@@ -118,7 +120,7 @@ print(result["summary"])
|
|
| 118 |
|
| 119 |
### cURL
|
| 120 |
```bash
|
| 121 |
-
curl -X POST "https://
|
| 122 |
-H "Content-Type: application/json" \
|
| 123 |
-d '{
|
| 124 |
"text": "Your text to summarize...",
|
|
|
|
| 13 |
|
| 14 |
A FastAPI-based text summarization service powered by Ollama and Llama 3.2 1B model.
|
| 15 |
|
| 16 |
+
**π Live Demo**: [https://huggingface.co/spaces/colin730/SummarizerApp](https://huggingface.co/spaces/colin730/SummarizerApp)
|
| 17 |
+
|
| 18 |
## π Features
|
| 19 |
|
| 20 |
- **Fast text summarization** using local LLM inference
|
|
|
|
| 107 |
|
| 108 |
# Summarize text
|
| 109 |
response = requests.post(
|
| 110 |
+
"https://huggingface.co/spaces/colin730/SummarizerApp/api/v1/summarize",
|
| 111 |
json={
|
| 112 |
"text": "Your long article or text here...",
|
| 113 |
"max_tokens": 256
|
|
|
|
| 120 |
|
| 121 |
### cURL
|
| 122 |
```bash
|
| 123 |
+
curl -X POST "https://huggingface.co/spaces/colin730/SummarizerApp/api/v1/summarize" \
|
| 124 |
-H "Content-Type: application/json" \
|
| 125 |
-d '{
|
| 126 |
"text": "Your text to summarize...",
|