broadfield-dev commited on
Commit
f191666
·
verified ·
1 Parent(s): 203d532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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