lucyknada commited on
Commit
6c117ab
·
verified ·
1 Parent(s): 9c585a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,8 +18,8 @@ with gr.Blocks() as demo:
18
  tokenize=False
19
  )
20
  return gr.update(value=template, visible=True)
21
- except:
22
- raise gr.Error("Could not get chat template")
23
  return gr.update(visible=False)
24
 
25
  demo.launch()
 
18
  tokenize=False
19
  )
20
  return gr.update(value=template, visible=True)
21
+ except Exception as err:
22
+ raise gr.Error(f"Could not get chat template: {err}")
23
  return gr.update(visible=False)
24
 
25
  demo.launch()