langs-for-hist / app.py
emirkaanozdemr's picture
Update app.py
9633091 verified
raw
history blame contribute delete
629 Bytes
import streamlit as st
import pandas as pd
st.title("Frigce, Göktürkçe ve Hititçe CSV Görüntüleme")
file_options = {
"Frigce": "./phrygian.csv",
"Göktürkçe": "./old_turkish.csv",
"Hititçe": "./hittite.csv",
}
selected_file = st.selectbox("Görüntülemek istediğiniz dosyayı seçin:", list(file_options.keys()))
if selected_file:
file_path = file_options[selected_file]
try:
df = pd.read_csv(file_path)
st.write(f"**{selected_file} Dosyasının İçeriği:**")
st.dataframe(df)
except Exception as e:
st.error(f"Dosya yüklenirken bir hata oluştu: {e}")