Update app.py
Browse files131 unmodified lines132133134135135136137138131 unmodified lines client = InferenceClient(model, token=huggingface_token) # Calculate input tokens (this is an approximation, you might need a more accurate method) input_tokens = len(prompt.split()) // 3 input_tokens = len(prompt.split()) // 4 # Get the token limit for the current model model_token_limit = MODEL_TOKEN_LIMITS.get(model, 8192) # Default to 8192 if model not foundapp.py+1-1