File size: 451 Bytes
d1a8b75
 
a64264b
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 ",
})