DrishtiSharma commited on
Commit
721c955
·
verified ·
1 Parent(s): a8b4ff8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -6
app.py CHANGED
@@ -155,12 +155,19 @@ class DocumentRAG:
155
  script_response = client.chat.completions.create(
156
  model="gpt-4",
157
  messages=[
158
- {"role": "system", "content": f"You are a professional podcast producer. Create a natural dialogue in {language} based on the provided document summary."},
159
- {"role": "user", "content": f"""Based on the following document summary, create a 1-2 minute podcast script:
160
- 1. Clearly label the dialogue as 'Host 1:' and 'Host 2:'
161
- 2. Keep the content engaging and insightful.
162
- 3. Use conversational language suitable for a podcast.
163
- 4. Ensure the script has a clear opening and closing.
 
 
 
 
 
 
 
164
  Document Summary: {self.document_summary}"""}
165
  ],
166
  temperature=0.7
 
155
  script_response = client.chat.completions.create(
156
  model="gpt-4",
157
  messages=[
158
+ {"role": "system", "content": f"""
159
+ You are a professional podcast producer. Create a 1-2 minute structured podcast dialogue in {language}
160
+ based on the provided document summary. Follow this flow:
161
+ 1. Brief Introduction of the Topic
162
+ 2. Highlight Main Contributions (from introduction)
163
+ 3. Discuss Limitations
164
+ 4. Present the Conclusion
165
+ 5. Mention Future Work
166
+
167
+ Clearly label the dialogue as 'Host 1:' and 'Host 2:'. Keep the tone engaging, conversational,
168
+ and insightful, with a clear opening and closing."""
169
+ },
170
+ {"role": "user", "content": f"""
171
  Document Summary: {self.document_summary}"""}
172
  ],
173
  temperature=0.7