Spaces:
Sleeping
Sleeping
Update app.py
Browse files18 unmodified lines192021222324252627282918 unmodified lines# --- Models ---def _build_hf_model(model_name: str) -> HfApiModel:"""Build HfApiModel across versions that expect repo_id or model_id."""try:return HfApiModel(repo_id=model_name, max_new_tokens=2048, temperature=0.3)except TypeError:return HfApiModel(model_id=model_name, max_new_tokens=2048, temperature=0.3)# Text/math models via smolagents18 unmodified lines192021222324252627282918 unmodified lines# --- Models ---def _build_hf_model(model_name: str) -> HfApiModel:"""Build ApiModel across versions that expect repo_id or model_id."""try:return ApiModel(repo_id=model_name, max_new_tokens=2048, temperature=0.3)except TypeError:return ApiModel(model_id=model_name, max_new_tokens=2048, temperature=0.3)# Text/math models via smolagents
app.py+3-3