emirkaanozdemr commited on
Commit
435df33
·
verified ·
1 Parent(s): 1178b1c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+
4
+ st.title("Frigce, Göktürkçe ve Hititçe CSV Görüntüleme")
5
+
6
+ file_options = {
7
+ "Frigce": "phrygian.csv",
8
+ "Göktürkçe": "old_turkish.csv",
9
+ "Hititçe": "hittite.csv",
10
+ }
11
+
12
+
13
+ selected_file = st.selectbox("Görüntülemek istediğiniz dosyayı seçin:", list(file_options.keys()))
14
+
15
+ if selected_file:
16
+ file_path = file_options[selected_file]
17
+ try:
18
+ df = pd.read_csv(file_path)
19
+ st.write(f"**{selected_file} Dosyasının İçeriği:**")
20
+ st.dataframe(df)
21
+ except Exception as e:
22
+ st.error(f"Dosya yüklenirken bir hata oluştu: {e}")