Skip to content

Demonstrating the integration of a Go server configured with OpenAI and Spotify APIs OAuth in a Python Streamlit application

Notifications You must be signed in to change notification settings

neyedhayo/gpt-spotify-generation-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STEPS FOR RUNNING THE APPLICATION

  • Step1: make sure you have Golang installed and working well on your code editor, if not download and install Go for your OS. Once this is done

make sure to run this code on the terminal to allow golang to recognise the application as a module, first navigate to the project directory and run e.g gui-chatbot

go mod init gui-chatbot
  • Step 2: Create a python virtual environment and make sure to install streamlit if not yet installed

  • Step 3: Once step 1 and 2 are done! Run the server.go file on the terminal with the substeps;

    • build the script

          go build
    • GOTO the key.txt file, copy and paste the code to the terminal to create the environment variable for the api key

    • run the server

      go run server.go
  • step 5: Once you have the go server running on a terminal, create a seperate terminal to run the streamlit application for the app.py

        streamlit run app.py --server.headless true
  • step 6: Also, create another seperate terminal to run the streamlit application for the spotify-app.py

        streamlit run spotify-app.py --server.headless true
  • step 6: To view the Homepage of the API.

        navigate to `http://127.0.0.1:5500/`
    
        or open the `index.html` in a browser.

About

Demonstrating the integration of a Go server configured with OpenAI and Spotify APIs OAuth in a Python Streamlit application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published