import gradio as gr def debias(gendered_word1,gendered_word2,occupation,model): return 'test','test','test' demo = gr.Interface( debias, inputs = [ gr.Textbox(placeholder="Gendered Word 1(Exp. Man)"), gr.Textbox(placeholder="Gendered Word 2(Exp. Woman)"), gr.Textbox(placeholder="Occupation(Exp. Nurse)"), gr.Radio(choices=['Glove-300d'],value='gpt2') ], outputs = [gr.Textbox(label="Debiased text"),gr.Textbox(label="Biased text"), gr.Markdown( value="

Examples

\n ")], description = 'Self-Diagnosis and Self-Debiasing: A Proposal for Reducing Corpus-Based Bias in NLP' ) if __name__ == '__main__': demo.launch()