lowkesh's picture
Update app.py
a64264b
raw
history blame contribute delete
No virus
451 Bytes
import gradio as gr
gr.Interface.load("models/chavinlo/gpt4-x-alpaca").launch()
import requests
API_URL = "https://api-inference.huggingface.co/models/chavinlo/gpt4-x-alpaca"
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 ",
})