Skip to content

DOZAKA/streamlit-pg-openai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Streamlit Playground!

How to check OpenAI secret key

Check secret key

How to check OpenAI organization

Check organization code

How to run?

Set Streamlit Config

$ vim .streamlit/config.toml
# Streamlit version: 1.18.0

[global]

# By default, Streamlit checks if the Python watchdog module is available and, if not, prints a warning asking for you to install it. The watchdog module is not required, but highly recommended. It improves Streamlit's ability to detect changes to files in your filesystem.
# If you'd like to turn off this warning, set this to True.
# Default: false
disableWatchdogWarning = false

# If True, will show a warning when you run a Streamlit-enabled script via "python my_script.py".
# Default: true
showWarningOnDirectExecution = true

# DataFrame serialization.
# Acceptable values: - 'legacy': Serialize DataFrames using Streamlit's custom format. Slow but battle-tested. - 'arrow': Serialize DataFrames using Apache Arrow. Much faster and versatile.
# Default: "arrow"
dataFrameSerialization = "arrow"

.
.
.

Build docker image

$ docker build -t streamlit-pg . --build-arg OPEN_AI_ORG=YOUR_ORG_HERE --build-arg OPEN_AI_API_KEY=YOUR_API_KEY_HERE

Run docker image

$ docker run -p 8501:8501 streamlit-pg

If you have any questions, checkout official documentation and community forums.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published