Spaces:
Sleeping
Sleeping
update torch and add check of python version
Browse files- app.py +3 -0
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -5,6 +5,9 @@ from dotenv import load_dotenv
|
|
| 5 |
import os
|
| 6 |
load_dotenv()
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
from langchain.chat_models import init_chat_model
|
| 10 |
|
|
|
|
| 5 |
import os
|
| 6 |
load_dotenv()
|
| 7 |
|
| 8 |
+
# check what python uses ghf gradio psaces sdk
|
| 9 |
+
import sys
|
| 10 |
+
print(f"Python version: {sys.version}")
|
| 11 |
|
| 12 |
from langchain.chat_models import init_chat_model
|
| 13 |
|
requirements.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 2 |
torch==2.5.1+cpu
|
| 3 |
-
torchvision==0.
|
| 4 |
torchaudio==2.5.1+cpu
|
| 5 |
|
| 6 |
sentence-transformers==2.7.0
|
|
|
|
| 1 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 2 |
torch==2.5.1+cpu
|
| 3 |
+
torchvision==0.21.0+cpu
|
| 4 |
torchaudio==2.5.1+cpu
|
| 5 |
|
| 6 |
sentence-transformers==2.7.0
|