Brawl_Stars_App / app.py
fth17172's picture
Update app.py
8fa2f15 verified
Raw
History Blame Contribute Delete
677 Bytes
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()