m-ric HF Staff commited on
Commit
6b39085
·
1 Parent(s): a3761cd

Debug shit

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -18,9 +18,8 @@ from papers import PaperManager
18
 
19
  paper_manager = PaperManager()
20
  top_papers = paper_manager.get_top_content()
21
- print("TOP PAPERS", top_papers)
22
 
23
- PODCAST_SUBJECT = top_papers.values()[0]
24
 
25
  # -----------------------------------------------------------------------------
26
  # LLM that writes the script (unchanged)
@@ -34,7 +33,11 @@ client = InferenceClient(
34
 
35
  def generate_podcast_text(subject: str) -> str:
36
  """Ask the LLM for a script of a podcast given by two hosts."""
37
- prompt = f"""Generate the script of "Open Paper review", a podcast told by 2 hosts about {subject}.
 
 
 
 
38
  The podcast should be an insightful discussion, with some amount of playful banter.
39
  Separate dialog as follows, using [S1] for the male host and [S2] for the female host, for instance:
40
  [S1] Hello, how are you?
 
18
 
19
  paper_manager = PaperManager()
20
  top_papers = paper_manager.get_top_content()
 
21
 
22
+ PODCAST_SUBJECT = list(top_papers.values())[0]
23
 
24
  # -----------------------------------------------------------------------------
25
  # LLM that writes the script (unchanged)
 
33
 
34
  def generate_podcast_text(subject: str) -> str:
35
  """Ask the LLM for a script of a podcast given by two hosts."""
36
+ prompt = f"""Generate the script of "Open Paper review", a podcast told by 2 hosts about.
37
+
38
+ Here is the topic: it's the top trending paper on Hugging Face daily papers today. You will need to analyze it by bringing profound insights.
39
+
40
+ {subject}
41
  The podcast should be an insightful discussion, with some amount of playful banter.
42
  Separate dialog as follows, using [S1] for the male host and [S2] for the female host, for instance:
43
  [S1] Hello, how are you?