You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey made this scrip to put into the Automater.app on OSX.
Just run automater and creat a "RunAppleScript" enter the scrips below and set it to your path. "/Users/Path/privateGPT"
then save it to Aplications or where ever.
probalby a better way to do this but worked for me.
tell application "Terminal"
do script "cd /Users/Path/privateGPT && export PGPT_PROFILES=ollama && make run"
activate
end tell
delay 10 -- Wait for 10 seconds before checking (adjust as needed)
-- Wait until the server is accessible
repeat
try
do shell script "curl -s --head http://localhost:8001/ | head -n 1 | grep 'HTTP/1.[01] [23]..' > /dev/null"
exit repeat
on error
delay 2 -- Wait 2 seconds before retrying
end try
end repeat
-- Open the webpage in the default browser
tell application "Safari" to open location "http://localhost:8001/"
-- OR for default browser, use:
do shell script "open http://localhost:8001/"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey made this scrip to put into the Automater.app on OSX.
Just run automater and creat a "RunAppleScript" enter the scrips below and set it to your path. "/Users/Path/privateGPT"
then save it to Aplications or where ever.
probalby a better way to do this but worked for me.
Beta Was this translation helpful? Give feedback.
All reactions