Views
No views yet
1import requests
2
3API_URL = "https://api-inference.huggingface.co/models/SelvaprakashV/stock-prediction-model"
4headers = {"Authorization": f"Bearer YOUR_HUGGINGFACE_API_TOKEN"}
5
6data = {
7 "inputs": "POWERGRID.NS" # Replace with your stock symbol
8}
9
10response = requests.post(API_URL, headers=headers, json=data)
11print(response.json())
12