File size: 677 Bytes
c60bb66
8fa2f15
c60bb66
8fa2f15
 
 
 
 
 
 
c60bb66
8fa2f15
 
 
 
c60bb66
 
8fa2f15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()