更新 function.py
Gitea Actions Experiment Test / Experiment-Actions (push) Successful in 10s

This commit is contained in:
2024-10-17 16:19:08 +08:00
parent 197d827252
commit 31f998425b
+7
View File
@@ -155,6 +155,13 @@ if __name__ == "__main__":
train_data,
train_labels,
)
try:
import numpy as np
print("NumPy is properly installed and working.")
except ImportError:
print("NumPy is not installed. Please install it using 'pip install numpy'.")
print(f"预测的标签: {predicted_label}")