(model_id: str,text: str)
| 152 | return str(inference(text)) |
| 153 | @task |
| 154 | def text2text_generation(model_id: str,text: str) -> str: |
| 155 | inference = InferenceApi(repo_id=model_id, token=CONFIG["huggingface"]["token"]) |
| 156 | return str(inference(text)) |
| 157 | @task |
| 158 | def summarization(model_id: str, text: str) -> str: |
| 159 | inference = InferenceApi(repo_id=model_id, token=CONFIG["huggingface"]["token"]) |
nothing calls this directly
no outgoing calls
no test coverage detected