Spaces:
Sleeping
Sleeping
File size: 517 Bytes
75cffc7 7632a87 824f6ca b933000 824f6ca 7632a87 824f6ca | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from __future__ import annotations
import gradio as gr
# Verify scikit-learn installation
try:
import sklearn
from sklearn.cluster import KMeans
sklearn_version = sklearn.__version__
print(f"✅ scikit-learn is installed. Versezaezaeion: {sklearn_version}")
except ImportError:
print("❌ scikit-learn is NOT installed. Please run: pip install scikit-learn")
raise
def greet(name):
return "Hello " + name + "!!"
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch() |