Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -230,7 +230,13 @@ You are a professional podcast generator. Your task is to generate a professiona
|
|
230 |
Follow this example structure:
|
231 |
{example}
|
232 |
"""
|
233 |
-
user_prompt =
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
|
235 |
messages = []
|
236 |
|
|
|
230 |
Follow this example structure:
|
231 |
{example}
|
232 |
"""
|
233 |
+
user_prompt = ""
|
234 |
+
if prompt and file_obj:
|
235 |
+
user_prompt = f"Please generate a podcast script based on the uploaded file following user input:\n{prompt}"
|
236 |
+
elif prompt:
|
237 |
+
user_prompt = f"Please generate a podcast script based on the following user input:\n{prompt}"
|
238 |
+
else:
|
239 |
+
user_prompt = "Please generate a podcast script based on the uploaded file."
|
240 |
|
241 |
messages = []
|
242 |
|