Priyanhsu commited on
Commit
90c67ec
·
1 Parent(s): 136fa30

Create App.py

Browse files
Files changed (1) hide show
  1. App.py +10 -0
App.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+
3
+ API_URL = "https://api-inference.huggingface.co/models/CSharpCorner/CSharpAISpam"
4
+ headers = {"Authorization": "Bearer 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"}
5
+
6
+ def query(payload):
7
+ response = requests.post(API_URL, headers=headers, json=payload)
8
+ return response.json()
9
+
10
+ output = query(['inputText'])