Spaces:
Running
Running
Update app.py
Browse files
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"
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|