aakarsh-yadav-tcgls commited on
Commit
4340d95
1 Parent(s): 36d951c

setting up api calling

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -4,10 +4,6 @@ import gradio as gr
4
  API_URL = "https://api-inference.huggingface.co/models/yiyanghkust/finbert-tone"
5
  headers = {"Authorization": "Bearer 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"}
6
 
7
-
8
- url = "YOUR_API_ENDPOINT"
9
- headers = {"Authorization": "Bearer YOUR_API_TOKEN"}
10
-
11
  # Replace "your_input_data" with the actual data you want to send to your model
12
  input_data = {"inputs": "your_input_data"}
13
  def query(payload):
 
4
  API_URL = "https://api-inference.huggingface.co/models/yiyanghkust/finbert-tone"
5
  headers = {"Authorization": "Bearer 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"}
6
 
 
 
 
 
7
  # Replace "your_input_data" with the actual data you want to send to your model
8
  input_data = {"inputs": "your_input_data"}
9
  def query(payload):