saq1b commited on
Commit
b5f8846
·
verified ·
1 Parent(s): 6bae3f3

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -230,7 +230,7 @@ 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}"
234
 
235
  messages = []
236
 
 
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