Spaces:
Running
Running
Update pages/1_CoursewithChat.py
Browse files- pages/1_CoursewithChat.py +3 -10
pages/1_CoursewithChat.py
CHANGED
|
@@ -60,18 +60,11 @@ with col1:
|
|
| 60 |
with col2:
|
| 61 |
# Embed the chat window
|
| 62 |
chat_html = """
|
| 63 |
-
|
| 64 |
<html>
|
| 65 |
<body>
|
| 66 |
-
<iframe
|
| 67 |
-
frameborder="0" style="width: 100%; height: 400px;"></iframe>
|
| 68 |
-
<script>
|
| 69 |
-
window.onscroll = function() {
|
| 70 |
-
var iframe = document.getElementById('chat-frame');
|
| 71 |
-
var scrollPosition = window.scrollY;
|
| 72 |
-
iframe.style.top = scrollPosition + 50 + 'px';
|
| 73 |
-
};
|
| 74 |
-
</script>
|
| 75 |
</body>
|
| 76 |
</html>
|
| 77 |
"""
|
|
|
|
| 60 |
with col2:
|
| 61 |
# Embed the chat window
|
| 62 |
chat_html = """
|
| 63 |
+
<!DOCTYPE html>
|
| 64 |
<html>
|
| 65 |
<body>
|
| 66 |
+
<iframe src="https://copilotstudio.microsoft.com/environments/Default-617fcda2-91ad-4995-99ff-cdc509695753/bots/cr111_pyTorchDocumentation/webchat?__version__=2"
|
| 67 |
+
frameborder="0" style="width: 100%; height: 400px; position: fixed; top: 50px; right: 0;"></iframe>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
</body>
|
| 69 |
</html>
|
| 70 |
"""
|