mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
networking
This commit is contained in:
parent
67c7ae761e
commit
51d37e05e5
@ -179,7 +179,7 @@ def enable_sharing(path):
|
||||
def predict():
|
||||
raw_input = request.json["data"]
|
||||
# If in debug mode, capture any errors made and pipe to front end
|
||||
if app.debug:
|
||||
if app.interface.debug:
|
||||
try:
|
||||
prediction, durations = app.interface.process(raw_input)
|
||||
except BaseException as error:
|
||||
|
Loading…
Reference in New Issue
Block a user