Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def get_system_stats():
|
|
| 62 |
f"Mem\t\t: {round(mem.used / (1024**3), 2)} / {round(mem.total / (1024**3), 2)} GB\n"
|
| 63 |
f"Disk\t\t: {round(disk.used / (1024**3), 2)} / {round(disk.total / (1024**3), 2)} GB\n"
|
| 64 |
f"Active\t\t: {live_count()}/5min"
|
| 65 |
-
)
|
| 66 |
|
| 67 |
def load_new_model(model_id):
|
| 68 |
"""Loads the model and tokenizer dynamically into the global manager."""
|
|
|
|
| 62 |
f"Mem\t\t: {round(mem.used / (1024**3), 2)} / {round(mem.total / (1024**3), 2)} GB\n"
|
| 63 |
f"Disk\t\t: {round(disk.used / (1024**3), 2)} / {round(disk.total / (1024**3), 2)} GB\n"
|
| 64 |
f"Active\t\t: {live_count()}/5min"
|
| 65 |
+
)
|
| 66 |
|
| 67 |
def load_new_model(model_id):
|
| 68 |
"""Loads the model and tokenizer dynamically into the global manager."""
|