Spaces:
Runtime error
Runtime error
Update useapi.py
Browse files
useapi.py
CHANGED
@@ -64,7 +64,7 @@ def get_models():
|
|
64 |
if model_info['model'] in ['gemma-2-9b', 'llama-3.1-8b']:
|
65 |
weight = 12 # Assign a low weight to reduce their frequency
|
66 |
else:
|
67 |
-
weight = int(math.ceil(25 / model_info['price'] + 0.5))
|
68 |
self.models.extend([model_info['model']] * weight)
|
69 |
|
70 |
model_storage = ModelStorage()
|
|
|
64 |
if model_info['model'] in ['gemma-2-9b', 'llama-3.1-8b']:
|
65 |
weight = 12 # Assign a low weight to reduce their frequency
|
66 |
else:
|
67 |
+
weight = int(math.ceil(25 / (model_info['price'] + 0.5)))
|
68 |
self.models.extend([model_info['model']] * weight)
|
69 |
|
70 |
model_storage = ModelStorage()
|