Spaces:
Sleeping
Sleeping
rrs circular
Browse files- update_rss.py +6 -1
update_rss.py
CHANGED
@@ -2,7 +2,12 @@ import xml.etree.ElementTree as ET
|
|
2 |
from datetime import datetime
|
3 |
import os
|
4 |
from huggingface_hub import InferenceClient
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
def generate_headline_and_description(subject: str, steering_question: str | None = None) -> tuple[str, str]:
|
8 |
"""Ask the LLM for a headline and a short description for the podcast episode."""
|
|
|
2 |
from datetime import datetime
|
3 |
import os
|
4 |
from huggingface_hub import InferenceClient
|
5 |
+
|
6 |
+
client = InferenceClient(
|
7 |
+
"Qwen/Qwen3-32B",
|
8 |
+
provider="hf-inference",
|
9 |
+
token=os.getenv("HF_TOKEN"),
|
10 |
+
)
|
11 |
|
12 |
def generate_headline_and_description(subject: str, steering_question: str | None = None) -> tuple[str, str]:
|
13 |
"""Ask the LLM for a headline and a short description for the podcast episode."""
|