File size: 865 Bytes
9a81c5a
 
 
 
 
 
a8bd017
3803ff3
2892b59
f1eab48
3803ff3
1
2
3
4
5
6
7
8
9
10
11
importngradio as gr
#gr.Interface.load("huggingface/mrm8488/bert-tiny-finetuned-sms-spam-detection",
##                  title="Spam detector",
 #                 Examples=[["Welcome back! How are you?"],["you won 1 million dollars! give 10000 dollars to gcash 090876356256 for claiming"]],
 #                 description="Input message here! Label 1 means message is spam",
 #                 allow_flagging="never").launch(inbrowser=True)import gradio as gr
gr.Interface.load("huggingface/prithivida/grammar_error_correcter_v1",
                  title="Spam detector",
                  examples=[["Welcome back! How are you?"],["you won 1 million dollars! give 10000 dollars to gcash 090876356256 for claiming"]],
                  description="Input message here! Label 1 means message is spam",
                  allow_flagging="never").launch(inbrowser=True)