Update modules/ui/ui.py
Browse files- modules/ui/ui.py +15 -0
modules/ui/ui.py
CHANGED
|
@@ -3,6 +3,21 @@ import streamlit as st
|
|
| 3 |
import logging
|
| 4 |
import sys
|
| 5 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Forzar la raíz del proyecto en el PATH del entorno de Hugging Face
|
| 8 |
root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
|
|
|
|
| 3 |
import logging
|
| 4 |
import sys
|
| 5 |
import os
|
| 6 |
+
import streamlit as st
|
| 7 |
+
import streamlit.components.v1 as components
|
| 8 |
+
|
| 9 |
+
# Inject custom meta tags
|
| 10 |
+
components.html(
|
| 11 |
+
"""
|
| 12 |
+
<head>
|
| 13 |
+
<meta property="og:title" content="My Streamlit App">
|
| 14 |
+
<meta property="og:description" content="Check out my cool app built with Streamlit.">
|
| 15 |
+
<meta property="og:image" content="https://example.com">
|
| 16 |
+
<meta property="og:url" content="https://streamlit.app">
|
| 17 |
+
</head>
|
| 18 |
+
""",
|
| 19 |
+
height=0,
|
| 20 |
+
)
|
| 21 |
|
| 22 |
# Forzar la raíz del proyecto en el PATH del entorno de Hugging Face
|
| 23 |
root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
|