LlamaWhisperer / app.py
awacke1's picture
Update app.py
63b0d2d
raw
history blame
542 Bytes
import requests
import streamlit as st
import os
API_URL = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud'
API_KEY = os.getenv('API_KEY')
headers = {
"Authorization": "Bearer {API_KEY}",
"Content-Type": "application/json"
}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({
"inputs": "Write instructions to teach anyone to write a discharge plan. List the entities, features and relationships to CCDA and FHIR objects in boldface. ",
})