Spaces:
Running
Running
| fileingestorText = """ This microservice integrates with the Orchestrator and HuggingFace Chat UI and \ | |
| uses the deterministic tool for further processing/actions. \ | |
| [ChaBo_FileIngestor](https://huggingface.co/spaces/GIZ/eudr_chabo_ingestor) hosts a microservice which takes the \ | |
| Geojson file input and calls [WHISP API]("https://whisp.openforis.org/api/submit/geojson"). | |
| **API documentation**: 1 API Endpoint | |
| ### api_name: /ingest | |
| Params: | |
| - filepath(filepath): Required | |
| Returns(str): Relevant response base don internal code of the microservice. | |
| **How to Connect** | |
| ```python | |
| from gradio_client import Client, handle_file | |
| client = Client("https://giz-eudr-chabo-ingestor.hf.space/") | |
| result = client.predict( | |
| file=handle_file('https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf'), | |
| api_name="/ingest" | |
| ) | |
| ``` | |
| """ |