import gradio as gr import os os.system('pip install transformers') os.system('pip install tensorflow') from transformers import pipeline classifier = pipeline("sentiment-analysis") def analysis(input): return classifier(input) iface = gr.Interface(fn=analysis, inputs="text", outputs="text") iface.launch()