Hello,
I’m trying to deploy an html app to streamlit cloud. Even if it currently works in local host, it doesn’t work in the cloud. Just showing an empty streamlit page. The app, whose details are here GitHub - mskilab/gGnome: R API for browsing, analyzing, and manipulating reference-aligned genome graphs in a GenomicRanges framework, is as follows:
Before any streamlit intervention, the app was working with a simple bash script that contains
open http://localhost:8080/index.html
npm start
and it has the files index.html, package.json, server.js, index.js etc.
My first naive attempt was to just call subprocess.run(['bash','/gGnome.js/start.sh'])
in a python script. Even if it works locally, it doesn’t work in the cloud. So, I follow the suggestions mentioned here: Showing a pyLDAvis html - #3 by ghass002
I did
import streamlit as st
import streamlit.components.v1 as components
html_string = 'index.html' # load your HTML from disk here
st.components.v1.html(html_string)
in app.py
, but it doesn’t show anything even locally. I appreciate it if someone can tell me how to do it.
P.S.: I pushed necessary files to github and streamlit has an access to it and the app.py
file as executable.