Harsh051015 commited on
Commit
664e5d2
·
1 Parent(s): 5ae84aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -1
app.py CHANGED
@@ -48,13 +48,30 @@ def main():
48
 
49
 
50
 
51
- title_prompt= f""" You are a good news journalist. Here is the article {article}. Your task is to generate multiple Headlines, Descriptions, and URL slugs.
 
 
52
  =========================
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  Restrictions:
54
  1. Don't provide any explanation or details
55
  """
56
 
57
 
 
58
  if st.button("Submit"):
59
  if article.strip():
60
  synthesized_article = openaifunction(title_prompt,max_tokens=700, temperature=0.3)
 
48
 
49
 
50
 
51
+ title_prompt= f""" You are a good news journalist. Here is the article {article}.
52
+ Your task is to generate multiple Headlines, Descriptions, and URL slugs.
53
+ Your response needs to be included within the article.
54
  =========================
55
+ Response must be like-
56
+ Headlines:
57
+ 1.
58
+ 2.
59
+ ....
60
+ Descriptions:
61
+ 1.
62
+ 2.
63
+ ....
64
+ URL Slugs:
65
+ 1.
66
+ 2.
67
+ ....
68
+ ==========================
69
  Restrictions:
70
  1. Don't provide any explanation or details
71
  """
72
 
73
 
74
+
75
  if st.button("Submit"):
76
  if article.strip():
77
  synthesized_article = openaifunction(title_prompt,max_tokens=700, temperature=0.3)