Spaces:
Runtime error
Runtime error
import streamlit as st | |
import numpy as np | |
import pandas as pd | |
import plotly.express as px | |
import plotly.graph_objects as go | |
from plotly.subplots import make_subplots | |
import time | |
from dataclasses import dataclass | |
from typing import Dict, List, Tuple, Optional, Callable | |
import warnings | |
warnings.filterwarnings('ignore') | |
# Basit test için önce bu kısa versiyonu deneyin | |
st.set_page_config( | |
page_title="Ortaçağ Feodal Düzeni Simülasyonu", | |
page_icon="🏰", | |
layout="wide" | |
) | |
st.title("🏰 Ortaçağ Feodal Düzeni Mean-Field Oyun Simülasyonu") | |
st.markdown("---") | |
# Basit test | |
st.write("Uygulama başarıyla yüklendi!") | |
# Yan panel | |
with st.sidebar: | |
st.header("Model Parametreleri") | |
vergi_orani = st.slider("Vergi Oranı (%)", 0, 100, 30) | |
corvee_gun = st.slider("Corvée Günleri (Haftalık)", 0, 7, 3) | |
guvenlik_harcama = st.slider("Güvenlik Harcaması", 0.0, 5.0, 1.5) | |
# Ana içerik | |
col1, col2 = st.columns(2) | |
with col1: | |
st.metric("Vergi Oranı", f"%{vergi_orani}") | |
st.metric("Corvée Günleri", f"{corvee_gun} gün/hafta") | |
with col2: | |
st.metric("Güvenlik Harcaması", f"{guvenlik_harcama}") | |
st.metric("Simülasyon Durumu", "Hazır") | |
if st.button("Simülasyonu Başlat", type="primary"): | |
st.success("Simülasyon başlatıldı!") | |
st.balloons() | |
st.info("Bu basit bir test versiyonudur. Tam kod yüklendikten sonra tüm özellikler aktif olacaktır.") |