Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
21 |
|
22 |
# Define a function to update the output when the component's value changes
|
23 |
def get_payload(result):
|
|
|
24 |
if result and result.get("status") == "Success":
|
|
|
25 |
return result.get("payload")
|
26 |
return None
|
27 |
|
|
|
21 |
|
22 |
# Define a function to update the output when the component's value changes
|
23 |
def get_payload(result):
|
24 |
+
print(result)
|
25 |
if result and result.get("status") == "Success":
|
26 |
+
print(f"Returning: {result.get("status")}")
|
27 |
return result.get("payload")
|
28 |
return None
|
29 |
|