Update README.md

add java dependency to doc
This commit is contained in:
Christian Tzolov
2023-11-10 19:02:55 +01:00
committed by GitHub
parent 0a584f0dc2
commit e0a9d4a8fe

View File

@@ -4,6 +4,16 @@ HuggingFace Inference Endpoints allow you to deploy and serve machine learning m
## Prerequisites
Add the `spring-ai-huggingface` dependency:
```xml
<dependency>
<groupId>org.springframework.experimental.ai</groupId>
<artifactId>spring-ai-huggingface</artifactId>
<version>0.7.0-SNAPSHOT</version>
</dependency>
```
You should get your HuggingFace API key and set it as an environment variable
```shell
@@ -53,4 +63,4 @@ Will produce the output
}
```
````
Note the response itself is in Markdown format.
Note the response itself is in Markdown format.