jslin09 commited on
Commit
9bf8d9f
1 Parent(s): 32b0450

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
1
  import gradio as gr
2
 
3
+ API_URL = "https://api-inference.huggingface.co/models/jslin09/bloom-560m-finetuned-fraud"
4
+ headers = {"Authorization": "Bearer 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"} # Read only
5
 
6
+ iface = gr.Interface.load("huggingface/jslin09/bloom-560m-finetuned-fraud",
7
+ examples=[["闕很大明知金融帳戶之存摺、提款卡及密碼係供自己使用之重要理財工具,"]]
8
+ )
9
+
10
+ iface.launch()