File size: 462 Bytes
32b0450
 
9bf8d9f
 
32b0450
837275c
519271e
837275c
9bf8d9f
 
519271e
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

API_URL = "https://api-inference.huggingface.co/models/jslin09/bloom-560m-finetuned-fraud"
headers = {"Authorization": "Bearer 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"} # Read only

iface = gr.Interface.load("huggingface/jslin09/bloom-560m-finetuned-fraud",
  examples=[["闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"]],
  api_key="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"
)

iface.launch()