Spaces:
Running
Running
Update utils.py
Browse files
utils.py
CHANGED
@@ -266,11 +266,10 @@ def fetch_article_text(link: str) -> str:
|
|
266 |
print(f"[ERROR] Error fetching article text: {e}")
|
267 |
return ""
|
268 |
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
"""
|
274 |
print("[LOG] Generating script with tone:", tone, "and length:", target_length)
|
275 |
groq_client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
276 |
|
|
|
266 |
print(f"[ERROR] Error fetching article text: {e}")
|
267 |
return ""
|
268 |
|
269 |
+
# Updated generate_script signature to accept extra arguments without using them
|
270 |
+
def generate_script(system_prompt: str, input_text: str, tone: str, target_length: str,
|
271 |
+
host_name: str = "Jane", guest_name: str = "John",
|
272 |
+
sponsor_style: str = "Separate Break", sponsor_provided: bool = False):
|
|
|
273 |
print("[LOG] Generating script with tone:", tone, "and length:", target_length)
|
274 |
groq_client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
275 |
|