Skip to content

Commit

Permalink
enhacne: robyn api handle transform with promises and metux
Browse files Browse the repository at this point in the history
  • Loading branch information
TankyH committed Sep 15, 2024
1 parent 6623aee commit 7dccf20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion robyn_api/python_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def pandas_builder(jsondata):
returndf = pd.DataFrame(jsondata)
return returndf

def robyn_api(argument,payload=0,api='http://127.0.0.1:9999/{}'):
def robyn_api(argument,payload=0,api='http://0.0.0.0:9999/{}'):
"""
Calls the Robyn API with the specified argument and payload.
Args:
Expand Down
2 changes: 1 addition & 1 deletion robyn_api/robynapi_call.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ apiPath <- paste0(path2file,'/robynapi_enpoints.R')


### Command to run Robyn API
r<-plumb(apiPath)$run(port=9999)
r<-plumb(apiPath)$run(port=9999,host="0.0.0.0")

0 comments on commit 7dccf20

Please sign in to comment.