File size: 1,390 Bytes
944aab6
3f62146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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"
                        )
                        ```
                        """