Spaces:
Sleeping
Sleeping
A-Duss
commited on
Commit
•
ff66157
1
Parent(s):
ba0500c
pydantic
Browse files- app.py +1 -0
- requirements.txt +0 -1
app.py
CHANGED
@@ -17,6 +17,7 @@ class OptimizedShitsuScorer:
|
|
17 |
# Move the accessed language to the end (most recently used)
|
18 |
self.scorers.move_to_end(language)
|
19 |
else:
|
|
|
20 |
# If we're at capacity, remove the least recently used model
|
21 |
if len(self.scorers) >= self.max_models:
|
22 |
self.scorers.popitem(last=False)
|
|
|
17 |
# Move the accessed language to the end (most recently used)
|
18 |
self.scorers.move_to_end(language)
|
19 |
else:
|
20 |
+
gr.Warning("A new language is being loaded in memory, this could take a while...")
|
21 |
# If we're at capacity, remove the least recently used model
|
22 |
if len(self.scorers) >= self.max_models:
|
23 |
self.scorers.popitem(last=False)
|
requirements.txt
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
git+https://github.com/lightblue-tech/shitsu.git
|
2 |
hf-transfer
|
3 |
huggingface_hub[hf_transfer]
|
4 |
-
pydantic-core==2.22.0
|
5 |
fastapi==0.112.4
|
6 |
requests==2.32.3
|
7 |
pydantic==2.8.2
|
|
|
1 |
git+https://github.com/lightblue-tech/shitsu.git
|
2 |
hf-transfer
|
3 |
huggingface_hub[hf_transfer]
|
|
|
4 |
fastapi==0.112.4
|
5 |
requests==2.32.3
|
6 |
pydantic==2.8.2
|