Skip to content

Commit 7acbc84

Browse files
committed
finishing touches on Render documentation
1 parent 82fda28 commit 7acbc84

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ From here you can simply click this button:
133133

134134
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https%3A%2F%2Fgithub.com%2FDataStax-Examples%2Flangflow-demo-prod%2Ftree%2Fmain)
135135

136-
You can find more extensive options and information about configuring the blueprint for things like scaling in the [Render documentation](https://docs.render.com/blueprint-spec).
136+
Note you'll need to use the Standard plan, as 512 MB of memory is insufficient for Langflow. You can find more extensive options
137+
and information about configuring the blueprint for things like scaling in the [Render documentation](https://docs.render.com/blueprint-spec).
137138

138139
## Kubernetes (with Helm)
139140

example.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
</style>
3535
</head>
3636
<body>
37+
<div>
38+
<input type="text" id="hostUrlInput" placeholder="Enter new host URL" value="http://localhost:7860">
39+
<button onclick="updateHostUrl()">Update Host URL</button>
40+
</div>
41+
3742
<div>
3843
<input type="text" id="labelInput" placeholder="Label for new session">
3944
<button onclick="addSession()">Add Session</button>
@@ -83,6 +88,16 @@
8388
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/uuid.min.js"></script>
8489
<script src="https://cdn.jsdelivr.net/gh/logspace-ai/[email protected]/dist/build/static/js/bundle.min.js"></script>
8590
<script>
91+
function updateHostUrl() {
92+
const newUrl = document.getElementById('hostUrlInput').value;
93+
if (newUrl) { // Check if the URL is not empty
94+
const chatComponents = document.querySelectorAll('langflow-chat');
95+
chatComponents.forEach(chat => {
96+
chat.setAttribute('host_url', newUrl);
97+
});
98+
}
99+
}
100+
86101
let sessions = JSON.parse(localStorage.getItem('sessions')) || [{'label': 'initial', 'id': uuid.v4()}];
87102
localStorage.setItem('sessions', JSON.stringify(sessions)); // Initialize or re-save
88103

@@ -159,6 +174,7 @@
159174

160175
window.onload = function() {
161176
populateSessionTable();
177+
updateHostUrl();
162178
};
163179
</script>
164180
</body>

0 commit comments

Comments
 (0)