Skip to content

Commit b48a230

Browse files
authored
refine chatGPT documentation
1 parent ba48734 commit b48a230

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="images/intelligent_java_header.png">
2+
<img src="images/intelligent_java_header.png" width="500em">
33
</p>
44

55
<p align="center">
@@ -16,7 +16,6 @@
1616
<img src="https://img.shields.io/github/license/Barqawiz/IntelliJava?style=flat-square" />
1717
</a>
1818

19-
<img src="https://awesome.re/badge.svg" />
2019
</p>
2120

2221
# Intelligent Java
@@ -72,7 +71,9 @@ LanguageModelInput langInput = new LanguageModelInput.Builder("Summarize the plo
7271
String resValue = langModel.generateText(langInput);
7372
```
7473
Output:```Inception follows Dom Cobb, a professional thief, who is offered a chance at redemption in exchange for planting an idea in a target's mind. He must navigate a dangerous landscape of dream-sharing technology and battle his inner demons in order to complete the mission and find his way back to reality.```
75-
<br><br>
74+
75+
<br>
76+
7677
**Image generation code** (2 steps):
7778
```java
7879
// 1- initiate the remote image model
@@ -85,7 +86,9 @@ List<String> images = imageModel.generateImages(imageInput);
8586
```
8687
Output:<br>
8788
<img src="images/response_image.png" height="220px">
88-
<br><br>
89+
90+
<br>
91+
8992
**Text to speech code** (2 steps):
9093
```java
9194
// 1- initiate the remote speech model
@@ -100,7 +103,9 @@ Output:<br>
100103
// save temporary audio file for testing
101104
AudioHelper.saveTempAudio(decodedAudio);
102105
```
103-
<br><br>
106+
107+
<br>
108+
104109
**ChatGPT code**:
105110
```java
106111
// 1- initiate the chat model.
@@ -118,6 +123,7 @@ List<String> resValues = bot.chat(input);
118123
Output:``` The average distance between the Moon and the Earth is about 238,855 miles (384,400 kilometers). ```
119124

120125
<br>
126+
121127
For full examples and ready integration try [the sample_code](https://github.com/Barqawiz/IntelliJava/tree/main/sample_code).
122128

123129
## Third-party dependencies

0 commit comments

Comments
 (0)