Charles De Dampierre commited on
Commit
daea89d
·
1 Parent(s): 09bcad9
Files changed (2) hide show
  1. app.py +16 -0
  2. test.html +0 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+
4
+ # Description on the left side
5
+ st.sidebar.title('Description')
6
+ st.sidebar.write("Bunka Summarize & Visualize Information as a Cartography. The current Dataset is the following one: https://huggingface.co/datasets/yitingxie/rlhf-reward-datasets.")
7
+ st.sidebar.write("Have a look at the following package on GitHub: https://github.com/charlesdedampierre/BunkaTopics")
8
+ st.title('Bunka Map')
9
+
10
+ # Path to the HTML file containing the Plotly figure
11
+ html_file_path = "test.html" # Replace with your HTML file path
12
+
13
+ # Use the 'st.components' function to embed the HTML content
14
+ with open(html_file_path, 'r') as f:
15
+ html = f.read()
16
+ st.components.v1.html(html, width=800, height=800)
test.html ADDED
The diff for this file is too large to render. See raw diff