Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Added handling of missing aiohttp module

pythongosssssf616dcc81a3e
diff --git a/main.py b/main.py
index ba2040599..0c1b37c77 100644
--- a/main.py
+++ b/main.py
@@ -7,6 +7,16 @@ import heapq
import traceback
import asyncio
+try:
+ import aiohttp
+ from aiohttp import web
+except ImportError:
+ print("Module 'aiohttp' not installed. Please install it via:")
+ print("pip install aiohttp")
+ print("or")
+ print("pip install -r requirements.txt")
+ sys.exit()
+
if __name__ == "__main__":
if '--help' in sys.argv:
print("Valid Command line Arguments:")
@@ -346,9 +356,6 @@ class PromptQueue:
return True
return False
-import aiohttp
-from aiohttp import web
-
def get_queue_info(prompt_queue):
prompt_info = {}
exec_info = {}