Skip to content

Commit

Permalink
Do not make webui minigpt4_chatbot variable global as it is an error …
Browse files Browse the repository at this point in the history
…older python versions
  • Loading branch information
Maknee committed Jul 24, 2023
1 parent 117347a commit 78f6308
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions minigpt4/webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"""
image_ready = False

global minigpt4_chatbot
minigpt4_chatbot: minigpt4_library.MiniGPT4ChatBot
minigpt4_chatbot: minigpt4_library.MiniGPT4ChatBot = None

def user(message, history):
history = history or []
Expand Down

0 comments on commit 78f6308

Please sign in to comment.