bstraehle commited on
Commit
66f39f2
·
1 Parent(s): f45a806

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -58,8 +58,10 @@ def invoke(prompt):
58
  "top_p": config["top_p"],
59
  }).text
60
  except Exception as e:
 
61
  raise gr.Error(e)
62
- wandb_log(prompt, completion)
 
63
  return completion
64
  #return "🛑 Execution is commented out. To view the source code see https://huggingface.co/spaces/bstraehle/google-vertex-ai-llm/tree/main."
65
 
 
58
  "top_p": config["top_p"],
59
  }).text
60
  except Exception as e:
61
+ completion = e
62
  raise gr.Error(e)
63
+ finally:
64
+ wandb_log(prompt, completion)
65
  return completion
66
  #return "🛑 Execution is commented out. To view the source code see https://huggingface.co/spaces/bstraehle/google-vertex-ai-llm/tree/main."
67