Spaces:
Runtime error
Runtime error
File size: 503 Bytes
2c94fee dde9028 2c94fee 566b152 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
import requests
url = "https://api.pawan.krd/cosmosrp/v1/chat/completions"
headers = {
"Content-Type": "application/json"
}
data = {
"model": "cosmosrp",
"messages": [
{"role": "system", "content": "You are a fantasy world dungeon master."},
{"role": "user", "content": "Describe the entrance of the ancient cave."}
]
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
gr.load("models/PawanKrd/CosmosRP-8k").launch() |