Downloads · 30 days
0
Nicknack124816/AI_TB_Detection_Model_SA
AI_TB_Detection_Model_SA is a machine learning model from Nicknack124816. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This Hugging Face Space loads an EfficientNet-B0 model trained to classify chest X-rays as:
Downloads · 30 days
0
Access
Public
Updated Jul 27, 2026
Repo size
16.3 MB
Likes
0
Public
Click a slice to open those files.
.pth16.3 MB · 100%
From the Hugging Face model README
This Hugging Face Space loads an EfficientNet-B0 model trained to classify chest X-rays as:
TBNon-TBThe app exposes both a web upload UI and a Gradio API endpoint.
app.py: Gradio app and inference codemodel.pth: trained PyTorch weightsrequirements.txt: Python dependenciesapi_client_example.py: example remote API callAfter the Space is running, install the client:
pip install gradio_client
Then call it:
from gradio_client import Client, handle_file
client = Client("YOUR_USERNAME/YOUR_SPACE_NAME")
result = client.predict(
image=handle_file("path/to/chest_xray.png"),
api_name="/predict",
)
print(result)
This model is for research and education only. It should not be used as a medical diagnosis tool.