Spaces:
Runtime error
Runtime error
Update app.py
Browse files8 unmodified lines91011121314158 unmodified lines"""Tests the Hugging Face Inference API connection with the provided API key."""try:# Initialize InferenceClient with the API keyclient = InferenceClient(model="distilbert-base-uncased", token=api_key)# Send a test query to the modelresponse = client.text_classification(query)# Return the classification result or confirmation of success8 unmodified lines91011121314158 unmodified lines"""Tests the Hugging Face Inference API connection with the provided API key."""try:# Initialize InferenceClient with the API keyclient = InferenceClient(model="distilbert-base-uncased-finetuned-sst-2-english", token=api_key)# Send a test query to the modelresponse = client.text_classification(query)# Return the classification result or confirmation of success
app.py+1-1