siddhartharyaai commited on
Commit
cd33a2f
·
verified ·
1 Parent(s): 5c2eef5

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +4 -5
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
- def generate_script(system_prompt: str, input_text: str, tone: str, target_length: str):
270
- """
271
- Sends the system_prompt plus input_text to the Groq LLM to generate a
272
- multi-speaker Dialogue in JSON. We parse and return it as a Dialogue object.
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