davanstrien HF Staff commited on
Commit
75937ae
·
1 Parent(s): 10a30e6

chore: Remove commented out code for OpenAI client initialization

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -96,12 +96,6 @@ def create_client(model_id):
96
  )
97
 
98
 
99
- # client = OpenAI(
100
- # base_url="https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-70B-Instruct/v1",
101
- # api_key=HF_TOKEN
102
- # )
103
-
104
-
105
  def weighted_random_choice(choices: List[Tuple[Callable, float]]) -> Callable:
106
  total = sum(weight for _, weight in choices)
107
  r = random.uniform(0, total)
 
96
  )
97
 
98
 
 
 
 
 
 
 
99
  def weighted_random_choice(choices: List[Tuple[Callable, float]]) -> Callable:
100
  total = sum(weight for _, weight in choices)
101
  r = random.uniform(0, total)