(model_id: str, text: str)
| 173 | return str(inference(input)) |
| 174 | @task |
| 175 | def text_generation(model_id: str, text: str) -> str: |
| 176 | inference = InferenceApi(repo_id=model_id, token=CONFIG["huggingface"]["token"]) |
| 177 | return str(inference(text)) |
| 178 | # CV tasks |
| 179 | @task |
| 180 | def visual_question_answering(model_id: str, image_file_name: str, text: str) -> str: |
nothing calls this directly
no outgoing calls
no test coverage detected