AggDetectApp / app.py
sdutta28's picture
Modified Gradio Config
17ef2da
raw
history blame
722 Bytes
from components.get_predictions import get_predictions
import gradio
if __name__ == "__main__":
interface = gradio.Interface(
get_predictions,
inputs=gradio.inputs.Textbox(
lines=2,
placeholder="Enter The Text",
default="",
label="Text to Predict",
),
outputs=[
gradio.outputs.Textbox(type="str", label="Aggression Prediction"),
gradio.outputs.Textbox(type="str", label="Misogyny Prediction"),
],
title="Aggression and Misogyny Predictor",
theme="dark-huggingface",
live=True,
)
# Launch the interface
interface.launch(
share=False,
debug=True,
)