AURA-Backend / test_bug.py
Vijayadhith7's picture
Upload folder using huggingface_hub
bae6af8 verified
Raw
History Blame Contribute Delete
496 Bytes
import asyncio
import json
import uuid
import os
from main import inference_core
async def run_test():
prompt = "today ipl match"
history = []
sandbox = {"overlay_mode": False}
try:
async for chunk_type, content in inference_core.generate_stream(prompt, history, sandbox=sandbox):
print(f"[{chunk_type}] {content}")
except Exception as e:
import traceback
traceback.print_exc()
if __name__ == "__main__":
asyncio.run(run_test())