update handle py (#16)
Browse files- update handle py (b23d643e23d36ae0a6fd2d27d57c1dc118bc6cb8)
Co-authored-by: ismail hakkı özçelik <ismailhakki37@users.noreply.huggingface.co>
30 unmodified lines31323334353637194 unmodified lines23223323423523623723830 unmodified linesKeywordsStoppingCriteria,)import spacesfrom huggingface_hub import HfApifrom huggingface_hub import loginfrom huggingface_hub import revision_exists194 unmodified linesreturn {"status": "success", "message": "Message added"}@spaces.GPUdef generate_response(message_text, image_input, temperature=0.05, top_p=1.0, max_output_tokens=4096):"""Generate response for the given message and image"""try:30 unmodified lines313233343536194 unmodified lines23123223323423523630 unmodified linesKeywordsStoppingCriteria,)from huggingface_hub import HfApifrom huggingface_hub import loginfrom huggingface_hub import revision_exists194 unmodified linesreturn {"status": "success", "message": "Message added"}def generate_response(message_text, image_input, temperature=0.05, top_p=1.0, max_output_tokens=4096):"""Generate response for the given message and image"""try:
handler.py-2