saq1b commited on
Commit
52c9fac
·
verified ·
1 Parent(s): b5f8846

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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 = f"Please generate a podcast script based on the following user input:\n{prompt}" if prompt else "Please generate a podcast script based on the uploaded file."
 
 
 
 
 
 
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