Spaces:
Sleeping
Sleeping
Daniel Nichols
commited on
Commit
•
2233c73
1
Parent(s):
8c0b7ca
Squashed commit of the following:
Browse filescommit 2c648309b6c002f529b640917cd7e870f66a4b4d
Author: Daniel Nichols <dando18studios@gmail.com>
Date: Sun Dec 1 15:27:49 2024 -0500
Fixes for release (#4)
* update ignored files
* update documentation
* fix paths to local files
- .gitignore +4 -1
- README.md +10 -0
- src/models.py +1 -1
- src/perfguru.py +1 -1
.gitignore
CHANGED
@@ -2,4 +2,7 @@ __pycache__
|
|
2 |
*.pyc
|
3 |
*.pyo
|
4 |
|
5 |
-
.env
|
|
|
|
|
|
|
|
2 |
*.pyc
|
3 |
*.pyo
|
4 |
|
5 |
+
.env
|
6 |
+
|
7 |
+
perf_guru_log.json
|
8 |
+
local_models/*.gguf
|
README.md
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: PerfGuru
|
3 |
+
emoji: 🤗
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: gray
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: "4.39.0"
|
8 |
+
app_file: src/perfguru.py
|
9 |
+
pinned: false
|
10 |
+
---
|
src/models.py
CHANGED
@@ -111,7 +111,7 @@ LOCAL_MODELS = [
|
|
111 |
]
|
112 |
|
113 |
AVAILABLE_MODELS = [
|
114 |
-
LocalModel(model_name, f"
|
115 |
for model_name in LOCAL_MODELS
|
116 |
]
|
117 |
|
|
|
111 |
]
|
112 |
|
113 |
AVAILABLE_MODELS = [
|
114 |
+
LocalModel(model_name, f"local_models/{model_name}.gguf")
|
115 |
for model_name in LOCAL_MODELS
|
116 |
]
|
117 |
|
src/perfguru.py
CHANGED
@@ -21,7 +21,7 @@ def code_upload(code_file_select):
|
|
21 |
|
22 |
|
23 |
def token_limit_getter(model: str) -> int:
|
24 |
-
with open("
|
25 |
token_limits = json.load(f)
|
26 |
if model in token_limits:
|
27 |
return token_limits[model]
|
|
|
21 |
|
22 |
|
23 |
def token_limit_getter(model: str) -> int:
|
24 |
+
with open("token_limits.json", "r") as f:
|
25 |
token_limits = json.load(f)
|
26 |
if model in token_limits:
|
27 |
return token_limits[model]
|