Skip to content

Commit 8440aea

Browse files
committed
update readme and remove proxy
1 parent 27aff9d commit 8440aea

File tree

2 files changed

+12
-20
lines changed

2 files changed

+12
-20
lines changed

README.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
# Text generation Testing UI
22

3-
## API CALL
4-
5-
curl --header "Content-Type: application/json" \
6-
--request POST \
7-
--data '{"context":"eleutherai", "top_p": 0.9, "temp": 0.75}' \
8-
http://34.90.220.168:5000/complete
3+
Using this app we can test various language models with a prompt through web interface.

src/App.js

+11-14
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,17 @@ function App() {
2121
temp = 0.75
2222
) => {
2323
setIsLoading(true);
24-
fetch(
25-
"https://cors-proxy-janko.herokuapp.com/http://34.90.220.168:5000/complete",
26-
{
27-
method: "POST",
28-
headers: {
29-
"Content-Type": "application/json",
30-
},
31-
body: JSON.stringify({
32-
context: text,
33-
top_p: topP,
34-
temp: temp,
35-
}),
36-
}
37-
)
24+
fetch("http://34.90.220.168:5000/complete", {
25+
method: "POST",
26+
headers: {
27+
"Content-Type": "application/json",
28+
},
29+
body: JSON.stringify({
30+
context: text,
31+
top_p: topP,
32+
temp: temp,
33+
}),
34+
})
3835
.then((response) => response.json())
3936
.then((data) => {
4037
console.log("Success:", data);

0 commit comments

Comments
 (0)