sajmahmo commited on
Commit
bfe5336
·
unverified ·
1 Parent(s): eb8898c

updated requirements.txt + small changes

Browse files
Files changed (2) hide show
  1. requirements.txt +4 -1
  2. src/LlamaIndex/draft.py +17 -0
requirements.txt CHANGED
@@ -12,4 +12,7 @@ pytz~=2025.1
12
  PyYAML~=6.0.2
13
  langchain~=0.3.20
14
  langchain-community~=0.3.19
15
- python-dotenv~=1.0.1
 
 
 
 
12
  PyYAML~=6.0.2
13
  langchain~=0.3.20
14
  langchain-community~=0.3.19
15
+ python-dotenv~=1.0.1
16
+ pillow~=11.1.0
17
+ helium~=5.1.1
18
+ selenium~=4.30.0
src/LlamaIndex/draft.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from llama_index.llms.huggingface_api import HuggingFaceInferenceAPI
2
+ from dotenv import load_dotenv
3
+ import os
4
+
5
+
6
+ load_dotenv()
7
+ llm = HuggingFaceInferenceAPI(
8
+ model_name="Qwen/Qwen2.5-Coder-32B-Instruct",
9
+ temperature=0.7,
10
+ max_tokens=20,
11
+ token=os.getenv("HUGGINGFACE_TOKEN")
12
+ )
13
+
14
+
15
+ if __name__ == "__main__":
16
+ # Example usage
17
+ response = llm.complete("Hello, how are you?")