Ver Fonte

fix check for sd2.1

Alex Cheema há 6 meses atrás
pai
commit
bbb6856988
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      exo/main.py

+ 1 - 1
exo/main.py

@@ -189,7 +189,7 @@ api = ChatGPTAPI(
 buffered_token_output = {}
 def update_topology_viz(req_id, tokens, __):
   if not topology_viz: return
-  if inference_engine.shard.model_id == 'stable-diffusion-2-1-base': return
+  if inference_engine.shard and inference_engine.shard.model_id == 'stable-diffusion-2-1-base': return
 
   if req_id in buffered_token_output: buffered_token_output[req_id].extend(tokens)
   else: buffered_token_output[req_id] = tokens