import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" import gradio as gr from deploy.index import FakeNewsDetector detector = FakeNewsDetector() iface = gr.Interface( fn=detector.comprehensive_verify, inputs=[ gr.Textbox(label="Headline"), ], outputs=gr.JSON(label="Analysis Result"), # JSON output for structured verdict title="Fake News Detector", description="Input a headline to check how credible it is.", ) iface.launch()