Spaces:
Runtime error
Runtime error
File size: 468 Bytes
9d6d156 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# planner.py
from gradio_client import Client
# Connect to your Hugging Face Space
client = Client("shreyab21/aegis-reasoner")
def llama_reason(query: str) -> str:
"""
Sends the query to the remote Reasoner Space (on Hugging Face)
and returns the generated reasoning response.
"""
try:
result = client.predict(query=query, api_name="/predict")
return result
except Exception as e:
return f"⚠️ Reasoner error: {e}"
|