mestvnvo commited on
Commit
3818fe2
·
1 Parent(s): 372338e

empty input catch

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -12,6 +12,9 @@ No explanation.
12
  """
13
 
14
  def get_vibe(caption):
 
 
 
15
  messages = [
16
  {"role": "system", "content": system_instruction},
17
  {"role": "user", "content": caption}
 
12
  """
13
 
14
  def get_vibe(caption):
15
+ if caption is None:
16
+ return "No caption provided."
17
+
18
  messages = [
19
  {"role": "system", "content": system_instruction},
20
  {"role": "user", "content": caption}