hf-search / pages /document.py
nouamanetazi's picture
nouamanetazi HF staff
initial commit
dc1b8a3
raw
history blame
466 Bytes
import os
import re
import json
import datetime
import itertools
import requests
from PIL import Image
import base64
import streamlit as st
def page():
record = st.session_state.get("selected_record")
st.set_page_config(
page_title=f"Record {record['filename']}",
page_icon="πŸ‘¨β€βš•οΈ",
layout="wide",
initial_sidebar_state="collapsed",
)
st.button("Back", on_click=lambda: set_record(None))
st.write(record)