Exception handling (#454)

* Update text_generation.py
* Update extensions.py
This commit is contained in:
oobabooga
2023-03-20 13:36:52 -03:00
committed by GitHub
parent a90f507abe
commit 75a7a84ef2
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
import traceback
import gradio as gr
import extensions
@@ -17,6 +19,7 @@ def load_extensions():
print('Ok.')
except:
print('Fail.')
traceback.print_exc()
# This iterator returns the extensions in the order specified in the command-line
def iterator():