GaborToth2 commited on
Commit
e7db4c3
·
1 Parent(s): a6b718f

documentation and cleanup

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -3,15 +3,11 @@ import os
3
  from huggingface_hub import InferenceClient
4
  import cohere
5
 
6
- # Models
7
  COHERE_MODEL = "command-r-plus"
8
  HF_MODEL = "meta-llama/Llama-3.2-3B-Instruct"
9
-
10
- # Fetch API keys from environment variables
11
  HF_API_KEY = os.getenv("HF_API_KEY")
12
  COHERE_API_KEY = os.getenv("COHERE_API_KEY")
13
-
14
- # Initialize clients for Hugging Face and Cohere APIs
15
  client_hf = InferenceClient(model=HF_MODEL, token=HF_API_KEY)
16
  client_cohere = cohere.Client(COHERE_API_KEY)
17
 
 
3
  from huggingface_hub import InferenceClient
4
  import cohere
5
 
6
+ # Models, API keys and initialization of API clients
7
  COHERE_MODEL = "command-r-plus"
8
  HF_MODEL = "meta-llama/Llama-3.2-3B-Instruct"
 
 
9
  HF_API_KEY = os.getenv("HF_API_KEY")
10
  COHERE_API_KEY = os.getenv("COHERE_API_KEY")
 
 
11
  client_hf = InferenceClient(model=HF_MODEL, token=HF_API_KEY)
12
  client_cohere = cohere.Client(COHERE_API_KEY)
13