trobet commited on
Commit
c6e13f1
·
1 Parent(s): 3ce49cb

Restore torch workaround + requirements.txt

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. requirements.txt +102 -0
app.py CHANGED
@@ -2,6 +2,7 @@ import logging
2
  import os
3
 
4
  import streamlit as st
 
5
  import sys
6
 
7
  from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, Settings, StorageContext, load_index_from_storage
@@ -15,6 +16,9 @@ LLM_MODEL="DeepSeek-R1-Distill-Llama-70B"
15
 
16
  PERSIST_DIR = "./storage"
17
 
 
 
 
18
  st.set_page_config(page_title="Votre expert en règles de marché RTE", layout="centered", initial_sidebar_state="auto", menu_items=None)
19
  st.title("Votre expert en règles de marché RTE")
20
 
 
2
  import os
3
 
4
  import streamlit as st
5
+ import torch
6
  import sys
7
 
8
  from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, Settings, StorageContext, load_index_from_storage
 
16
 
17
  PERSIST_DIR = "./storage"
18
 
19
+ # Ajuster le chemin de torch.classes pour éviter le conflit
20
+ torch.classes.__path__ = []
21
+
22
  st.set_page_config(page_title="Votre expert en règles de marché RTE", layout="centered", initial_sidebar_state="auto", menu_items=None)
23
  st.title("Votre expert en règles de marché RTE")
24
 
requirements.txt ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiohappyeyeballs==2.4.6
2
+ aiohttp==3.11.12
3
+ aiosignal==1.3.2
4
+ altair==5.5.0
5
+ annotated-types==0.7.0
6
+ anyio==4.8.0
7
+ attrs==25.1.0
8
+ beautifulsoup4==4.13.3
9
+ blinker==1.9.0
10
+ cachetools==5.5.1
11
+ certifi==2025.1.31
12
+ charset-normalizer==3.4.1
13
+ click==8.1.8
14
+ colorama==0.4.6
15
+ dataclasses-json==0.6.7
16
+ Deprecated==1.2.18
17
+ dirtyjson==1.0.8
18
+ distro==1.9.0
19
+ embeddings==0.0.8
20
+ filelock==3.17.0
21
+ filetype==1.2.0
22
+ frozenlist==1.5.0
23
+ fsspec==2025.2.0
24
+ gitdb==4.0.12
25
+ GitPython==3.1.44
26
+ greenlet==3.1.1
27
+ h11==0.14.0
28
+ httpcore==1.0.7
29
+ httpx==0.28.1
30
+ huggingface-hub==0.28.1
31
+ idna==3.10
32
+ Jinja2==3.1.5
33
+ jiter==0.8.2
34
+ joblib==1.4.2
35
+ jsonschema==4.23.0
36
+ jsonschema-specifications==2024.10.1
37
+ llama-index-core==0.12.16.post1
38
+ llama-index-embeddings-huggingface==0.5.1
39
+ llama-index-llms-openai==0.3.18
40
+ llama-index-llms-openai-like==0.3.3
41
+ llama-index-readers-file==0.4.4
42
+ markdown-it-py==3.0.0
43
+ MarkupSafe==3.0.2
44
+ marshmallow==3.26.1
45
+ mdurl==0.1.2
46
+ mpmath==1.3.0
47
+ multidict==6.1.0
48
+ mypy-extensions==1.0.0
49
+ narwhals==1.25.2
50
+ nest-asyncio==1.6.0
51
+ networkx==3.4.2
52
+ nltk==3.9.1
53
+ numpy==2.2.2
54
+ openai==1.61.1
55
+ packaging==24.2
56
+ pandas==2.2.3
57
+ pillow==11.1.0
58
+ propcache==0.2.1
59
+ protobuf==5.29.3
60
+ pyarrow==19.0.0
61
+ pydantic==2.10.6
62
+ pydantic_core==2.27.2
63
+ pydeck==0.9.1
64
+ Pygments==2.19.1
65
+ pypdf==5.3.0
66
+ python-dateutil==2.9.0.post0
67
+ pytz==2025.1
68
+ PyYAML==6.0.2
69
+ referencing==0.36.2
70
+ regex==2024.11.6
71
+ requests==2.32.3
72
+ rich==13.9.4
73
+ rpds-py==0.22.3
74
+ safetensors==0.5.2
75
+ scikit-learn==1.6.1
76
+ scipy==1.15.1
77
+ sentence-transformers==3.4.1
78
+ setuptools==75.8.0
79
+ six==1.17.0
80
+ smmap==5.0.2
81
+ sniffio==1.3.1
82
+ soupsieve==2.6
83
+ SQLAlchemy==2.0.38
84
+ streamlit==1.42.0
85
+ striprtf==0.0.26
86
+ sympy==1.13.1
87
+ tenacity==9.0.0
88
+ threadpoolctl==3.5.0
89
+ tiktoken==0.8.0
90
+ tokenizers==0.21.0
91
+ toml==0.10.2
92
+ torch==2.6.0
93
+ tornado==6.4.2
94
+ tqdm==4.67.1
95
+ transformers==4.48.3
96
+ typing-inspect==0.9.0
97
+ typing_extensions==4.12.2
98
+ tzdata==2025.1
99
+ urllib3==2.3.0
100
+ watchdog==6.0.0
101
+ wrapt==1.17.2
102
+ yarl==1.18.3