Spaces:
Runtime error
Runtime error
import streamlit as st | |
import requests | |
API_URL = "https://api-inference.huggingface.co/models/Salesforce/codegen-16B-multi" | |
headers = {"Authorization": "Bearer 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"} | |
def query(payload): | |
response = requests.post(API_URL, headers=headers, json=payload) | |
return response.json() | |
output = query({ | |
"inputs": "Can you please let us know more details about your ", | |
}) |