import gradio as gr import requests def get_hf_ip(): try: # Sunucunun dış dünyaya hangi IP ile çıktığını öğreniyoruz ip = requests.get("https://api4.icanhazip.com", timeout=5).text.strip() return f"🌐 Hugging Face Sunucu IP Adresiniz: {ip}" except Exception as e: return f"🚨 IP Alınamadı: {str(e)}" with gr.Blocks() as demo: gr.Markdown("# 🔍 Hugging Face IP Bulucu") ip_output = gr.Textbox(label="Supercell Sitesine Eklenecek IP", value=get_hf_ip()) gr.Markdown("Bu IP adresini kopyalayıp Brawl Stars Developer sitesindeki mevcut anahtarınıza ekleyin.") if __name__ == "__main__": demo.launch()