John6666 commited on
Commit
201060e
1 Parent(s): 5404b87

Upload 2 files

Browse files
Files changed (2) hide show
  1. prompt.py +2 -5
  2. requirements.txt +1 -2
prompt.py CHANGED
@@ -318,14 +318,11 @@ class PromptGenerator:
318
  return prompt
319
 
320
  import os
321
- from openai import OpenAI
322
 
323
  class HuggingFaceInferenceNode:
 
324
  def __init__(self):
325
- self.client = OpenAI(
326
- base_url="https://api-inference.huggingface.co/v1/",
327
- #api_key=huggingface_token,
328
- )
329
  self.prompts_dir = "./prompts"
330
  os.makedirs(self.prompts_dir, exist_ok=True)
331
 
 
318
  return prompt
319
 
320
  import os
 
321
 
322
  class HuggingFaceInferenceNode:
323
+
324
  def __init__(self):
325
+ self.client = InferenceClient("meta-llama/Meta-Llama-3.1-70B-Instruct")
 
 
 
326
  self.prompts_dir = "./prompts"
327
  os.makedirs(self.prompts_dir, exist_ok=True)
328
 
requirements.txt CHANGED
@@ -13,5 +13,4 @@ controlnet-aux
13
  kornia
14
  numpy
15
  opencv-python
16
- deepspeed
17
- openai==1.37.0
 
13
  kornia
14
  numpy
15
  opencv-python
16
+ deepspeed