Spaces:
Runtime error
Runtime error
yuntian-deng
commited on
Commit
•
f0321ce
1
Parent(s):
3b68ae6
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
|
14 |
def exception_handler(exception_type, exception, traceback):
|
15 |
print("%s: %s" % (exception_type.__name__, exception))
|
16 |
sys.excepthook = exception_handler
|
|
|
17 |
|
18 |
def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
19 |
|
|
|
14 |
def exception_handler(exception_type, exception, traceback):
|
15 |
print("%s: %s" % (exception_type.__name__, exception))
|
16 |
sys.excepthook = exception_handler
|
17 |
+
sys.tracebacklimit = 0
|
18 |
|
19 |
def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
20 |
|