File size: 1,746 Bytes
daea89d 7f5ac1f a19a1ee daea89d 7f5ac1f 20fd217 0dbc814 7f5ac1f 8f63f04 daea89d 7f5ac1f daea89d 7f5ac1f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
import streamlit as st
st.sidebar.image("images/logo.png", use_column_width=True)
st.sidebar.write("Bunka Summarizes & Visualizes Information as Maps using LLMs.")
st.sidebar.title("Github Page")
st.sidebar.write(
"Have a look at the following package on GitHub: https://github.com/charlesdedampierre/BunkaTopics"
)
st.sidebar.title("Dataset")
st.sidebar.write("HH-RLHF Dataset: https://huggingface.co/datasets/Anthropic/hh-rlhf")
st.title("How to understand large textual datasets?")
import pandas as pd
df = pd.read_csv("data/rejection-sampling.csv", index_col=[0])
st.dataframe(df, use_container_width=True)
st.title("Bunka Exploration Engine")
st.image("images/pipeline.png", use_column_width=True)
# Path to the HTML file containing the Plotly figure
bunka_map_path = "maps/bunka_map.html" # Replace with your HTML file path
# Use the 'st.components' function to embed the HTML content
with open(bunka_map_path, "r") as f:
bunka_map_html = f.read()
st.components.v1.html(bunka_map_html, width=800, height=800)
st.title("Bourdieu Framing Analysis")
# Path to the HTML file containing the Plotly figure
bunka_map_path = (
"maps/bourdieu_priacy_politics.html" # Replace with your HTML file path
)
# Use the 'st.components' function to embed the HTML content
with open(bunka_map_path, "r") as f:
bunka_map_html = f.read()
st.components.v1.html(bunka_map_html, width=800, height=800)
# Path to the HTML file containing the Plotly figure
bunka_map_path = "maps/violence_men_women.html" # Replace with your HTML file path
# Use the 'st.components' function to embed the HTML content
with open(bunka_map_path, "r") as f:
bunka_map_html = f.read()
st.components.v1.html(bunka_map_html, width=800, height=800)
|