Spaces:
Sleeping
Sleeping
Update app.py
Browse files14 unmodified lines151617181920212223242526272814 unmodified linespredicted_class = torch.argmax(logits, dim=-1).item() # Get the predicted classlabels = ["Negative", "Neutral", "Positive"] # Adjust based on your model's labelsreturn labels[predicted_class]css =body {background-image: url('https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.cardekho.com%2Fkia%2Fcarnival&psig=AOvVaw0gJ-OuvTNRMOejPCpZbXvN&ust=1733533986628000&source=images&cd=vfe&opi=89978449&ved=0CBQQjRxqFwoTCPDU4sP7kYoDFQAAAAAdAAAAABAE'); /* Replace with your image URL */background-size: cover;background-repeat: no-repeat;background-attachment: fixed;}# Set up Gradio interfaceinterface = gr.Interface(14 unmodified lines15161718192014 unmodified linespredicted_class = torch.argmax(logits, dim=-1).item() # Get the predicted classlabels = ["Negative", "Neutral", "Positive"] # Adjust based on your model's labelsreturn labels[predicted_class]# Set up Gradio interfaceinterface = gr.Interface(
app.py-8