Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ bedrock_runtime = boto3.client(
|
|
23 |
)
|
24 |
|
25 |
def invoke(prompt):
|
26 |
-
if
|
27 |
raise gr.Error("Prompt is required.")
|
28 |
|
29 |
raise gr.Error("Clone and bring your own credentials.")
|
|
|
23 |
)
|
24 |
|
25 |
def invoke(prompt):
|
26 |
+
if not prompt:
|
27 |
raise gr.Error("Prompt is required.")
|
28 |
|
29 |
raise gr.Error("Clone and bring your own credentials.")
|