Update app.py
Browse files
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()
|