Spaces:
Sleeping
Sleeping
empty input catch
Browse files
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}
|