import gradio as gr model = gr.load("models/Afia-manubea/MovieDistilBertReview-SentimentPrediction-Model") def predict_sentiment(review): # Perform sentiment prediction using the loaded model prediction = model.predict(review) return prediction iface = gr.Interface(fn=predict_sentiment, inputs="text", outputs="text") iface.launch(server_port=8000)