I have a network problem deploying my app

First of all, thank you for making a great app.

Running the app from the outside was successful.
However, when I press the button of my app, Selenium works and runs the Chrome browser, but the problem is that the browser runs local. Is it impossible to launch a browser from an external computer?

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

import streamlit as st
import pandas as pd
from datetime import time

run = st.button('Run')

if run :    
    chrome_optiins = Options() 
    chrome_optiins.add_experimental_option('detach', True)
    chrome_optiins.add_experimental_option('excludeSwitches', ['enable-logging']) 
    service = Service(executable_path=ChromeDriverManager().install()) 
    # URL 
    driver = webdriver.Chrome(service=service,options= chrome_optiins)

    #Chrome Browser Size
    driver.set_window_size(1400, 1000)

    # connect

Thank you.

Hi! :wave: Streamlit has a client-server architecture. All of the Python code runs on the server–the computer that executes the streamlit run my_app.py command. All of the users of your app only see the Streamlit elements rendered to the page; their computers do not run any of the logic of the app unless they are viewing the app from the same computer that is hosting it.

1 Like

Thank you.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.