Rausda6 commited on
Commit
e6bb43e
·
verified ·
1 Parent(s): 60fc789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -26,7 +26,7 @@ import traceback
26
  MAX_FILE_SIZE_MB = 20
27
  MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024
28
 
29
- MODEL_ID = "unsloth/Llama-3.2-3B" #unsloth/Llama-3.2-1B"
30
 
31
  # Global logging system - CRITICAL FIX #1
32
  logs = []
@@ -306,20 +306,18 @@ class PodcastGenerator:
306
 
307
  Requirements:
308
  - Exactly 2 speakers (speaker 1 and 2)
309
- - Natural conversation style
310
  - The podcast should be long, focusing on the input text
311
  - Do not use names for the speakers.
312
- - The Podcast starts with : welcome to our todays podcast !
313
- - DO NOT copy the example below , only use it as conversation reference generate new content based on input
314
- - The podcast should be professional, in-depth, interesting, lively, witty and engaging, and hook the listener from the start.
315
- - The input text might be disorganized or unformatted, originating from sources like PDFs or text files. Ignore any formatting inconsistencies or irrelevant details; your task is to distill the essential points, identify key definitions, and highlight intriguing facts that would be suitable for discussion in a podcast.
316
  - The script must be in JSON format.
317
  - {language_instruction}
318
-
319
- Example JSON structure:
320
- {json.dumps(example_json, indent=2)}
321
  """
322
- user_prompt = f"\nTopic: {prompt}\nJSON:"
 
 
 
323
  full_prompt = system_prompt + user_prompt
324
  add_log("🔍 Prompt Preview:\n" + full_prompt[:2000])
325
 
 
26
  MAX_FILE_SIZE_MB = 20
27
  MAX_FILE_SIZE_BYTES = MAX_FILE_SIZE_MB * 1024 * 1024
28
 
29
+ MODEL_ID = "unsloth/gemma-3-4b-it-bnb-4bit" #unsloth/Llama-3.2-3B" #unsloth/Llama-3.2-1B"
30
 
31
  # Global logging system - CRITICAL FIX #1
32
  logs = []
 
306
 
307
  Requirements:
308
  - Exactly 2 speakers (speaker 1 and 2)
 
309
  - The podcast should be long, focusing on the input text
310
  - Do not use names for the speakers.
311
+ - DO NOT copy the example below , only use it as conversation reference
312
+ - The podcast should be professional, in-depth, lively, witty and engaging, and hook the listener from the start.
313
+ - The input text might be disorganized or unformatted. Ignore any formatting inconsistencies or irrelevant details; your task is to distill the essential points, identify key definitions, and highlight intriguing facts that would be suitable for discussion in a podcast.
 
314
  - The script must be in JSON format.
315
  - {language_instruction}
 
 
 
316
  """
317
+
318
+ #Example JSON structure:
319
+ #{json.dumps(example_json, indent=2)}
320
+ user_prompt = user_prompt = f"\nInput Text:\n{prompt}\n\nJSON:"# f"\nTopic: {prompt}\nJSON:"
321
  full_prompt = system_prompt + user_prompt
322
  add_log("🔍 Prompt Preview:\n" + full_prompt[:2000])
323