-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91f11b6
commit 5fe1b53
Showing
10 changed files
with
684 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import os | ||
from pyngrok import ngrok, conf | ||
from dotenv import load_dotenv | ||
import subprocess | ||
|
||
# Load environment variables from .env file | ||
load_dotenv() | ||
|
||
# Set up Ngrok configuration | ||
ngrok_config = conf.PyngrokConfig() | ||
conf.set_default(ngrok_config) | ||
|
||
# Authenticate with Ngrok using the auth token | ||
ngrok.set_auth_token(os.getenv("ngrok_key")) | ||
|
||
# Create a public URL for your local Streamlit app | ||
public_url = ngrok.connect(8501) | ||
print("Ngrok Tunnel URL:", public_url) | ||
|
||
# Run your Streamlit app | ||
subprocess.run(["streamlit", "run", "Demo_Suite.py"]) |
Oops, something went wrong.