Do not create the API in chat mode
This commit is contained in:
@@ -538,6 +538,7 @@ def create_interface():
|
||||
else:
|
||||
shared.gradio[k].release(lambda state, value, copy=k: change_dict_value(state, copy, value), inputs=[shared.gradio['generate_state'], shared.gradio[k]], outputs=shared.gradio['generate_state'])
|
||||
|
||||
if not shared.is_chat():
|
||||
api.create_apis()
|
||||
|
||||
# Authentication
|
||||
|
||||
Reference in New Issue
Block a user