Skip to content

Commit

Permalink
update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh-31 committed Sep 13, 2024
1 parent b9bd669 commit 7f24c59
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HUGGINGFACEHUB_API_TOKEN="hf_XXXXXXXXX"
PORT=8080
10 changes: 5 additions & 5 deletions Test/request_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@


# TEST Compare Answers
response = requests.post(url="http://127.0.0.1:8080/neuarlearn/ml/CompareAnswers", json=payload_compare_answers)
print(response.json())
# response = requests.post(url="http://127.0.0.1:8080/neuarlearn/ml/CompareAnswers", json=payload_compare_answers)
# print(response.json())

# TEST Question Generation
# response = requests.post(url="http://127.0.0.1:8080/neuarlearn/ml/QuestionGeneration", json={"transcript":context,"types":[2],"chunk_size":3000,'chunk_overlap':500})
# response = requests.post(url="http://127.0.0.1:8080/neuarlearn/ml/QuestionGeneration", json={"transcript":context,"types":[1,2,3],"chunk_size":1800,'chunk_overlap':500})
# print(response.json())

# TEST CHATBOT
# response = requests.post(url="http://127.0.0.1:8080/neuarlearn/ml/chat", json=payload)
# print(response.json())
response = requests.post(url="http://127.0.0.1:8080/neuarlearn/ml/chat", json=payload)
print(response.json())

# TEST Summaizer
# response = requests.post(url="http://127.0.0.1:8080/neuarlearn/ml/summaizer", json={"text":context, "min_length": 50, "max_length": 250})
Expand Down
20 changes: 0 additions & 20 deletions ToDo.txt

This file was deleted.

6 changes: 5 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ peft==0.11.1
pydantic==2.7.3
python-dotenv==1.0.1
Requests==2.32.3
torch==2.3.0
torch==2.2.1
transformers==4.39.3
uvicorn==0.30.1
sentence-transformers
bitsandbytes
spacy
chromadb

0 comments on commit 7f24c59

Please sign in to comment.