File tree 2 files changed +12
-20
lines changed
2 files changed +12
-20
lines changed Original file line number Diff line number Diff line change 1
1
# Text generation Testing UI
2
2
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.
Original file line number Diff line number Diff line change @@ -21,20 +21,17 @@ function App() {
21
21
temp = 0.75
22
22
) => {
23
23
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
+ } )
38
35
. then ( ( response ) => response . json ( ) )
39
36
. then ( ( data ) => {
40
37
console . log ( "Success:" , data ) ;
You can’t perform that action at this time.
0 commit comments