update handle py
#16
by ismailhakki37 - opened
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