John6666 commited on
Commit
d72432a
1 Parent(s): f268480

Upload prompt.py

Browse files
Files changed (1) hide show
  1. prompt.py +1 -0
prompt.py CHANGED
@@ -330,6 +330,7 @@ class HuggingFaceInferenceNode:
330
  self.client = OpenAI(base_url="https://api-inference.huggingface.co/v1/", api_key=huggingface_token)
331
  except Exception as e:
332
  print(e)
 
333
  self.prompts_dir = "./prompts"
334
  os.makedirs(self.prompts_dir, exist_ok=True)
335
 
 
330
  self.client = OpenAI(base_url="https://api-inference.huggingface.co/v1/", api_key=huggingface_token)
331
  except Exception as e:
332
  print(e)
333
+ self.client = None
334
  self.prompts_dir = "./prompts"
335
  os.makedirs(self.prompts_dir, exist_ok=True)
336