fantos commited on
Commit
448bf0e
·
verified ·
1 Parent(s): 754b04a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -34
app.py CHANGED
@@ -43,21 +43,33 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
43
  <h1 style="text-align: center; font-size: 2.2em; margin-bottom: 0.2em;">🎨 BadgeCraft - Beautiful Badge Generator</h1>
44
  <p style="text-align: center; font-size: 1.1em; color: #555;">Design stylish shields.io badges with live preview and HTML snippet generation.</p>
45
 
46
- <div align="center" style="font-weight: bold; margin-top: 20px; margin-bottom: 15px;">
47
- <b>Papers Leaderboard: <a href="https://huggingface.co/spaces/Heartsync/Papers-Leaderboard">https://huggingface.co/spaces/Heartsync/Papers-Leaderboard</a></b>
48
- </div>
49
- <div align="center" style="line-height: 1.7;">
50
- <a href="https://discord.gg/openfreeai" style="margin: 2px;">
51
- <img alt="OpenFree AI Discord Server" src="https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" />
52
  </a>
53
- <a href="https://x.com/openfree_ai" style="margin: 2px;">
54
- <img alt="X.ai" src="https://img.shields.io/badge/X.com-000000?style=for-the-badge&logo=X&logoColor=white" />
55
  </a>
56
- <a href="https://huggingface.co/collections/VIDraft/best-open-ai-services-68057e6e312880ea92abaf4c" style="margin: 2px;">
57
  <img alt="Collections" src="https://img.shields.io/badge/Collections-F8F8F8?style=for-the-badge&logo=huggingface&logoColor=black" />
58
  </a>
59
- <a href="https://huggingface.co/VIDraft" style="margin: 2px;">
60
- <img alt="HF Page" src="https://img.shields.io/badge/VIDraft-FCD022?style=for-the-badge&logo=huggingface&logoColor=black" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  </a>
62
  </div>
63
  """)
@@ -83,28 +95,6 @@ with gr.Blocks(theme=gr.themes.Default()) as demo:
83
  for inp in inputs:
84
  inp.change(fn=generate_static_badge, inputs=inputs, outputs=[out_code, out_preview])
85
 
86
- gr.HTML("""
87
- <hr style="margin-top: 50px;">
88
- <h3 style="text-align:center;">🌐 Example Badges for Popular Platforms</h3>
89
- <div align="center" style="margin-top: 15px;">
90
- <a href="https://github.com/openfreeai" style="margin: 4px;">
91
- <img src="https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="GitHub">
92
- </a>
93
- <a href="https://twitter.com/openfree_ai" style="margin: 4px;">
94
- <img src="https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" alt="Twitter">
95
- </a>
96
- <a href="https://www.linkedin.com/company/openfreeai" style="margin: 4px;">
97
- <img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn">
98
- </a>
99
- <a href="https://youtube.com/@openfreeai" style="margin: 4px;">
100
- <img src="https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white" alt="YouTube">
101
- </a>
102
- <a href="https://huggingface.co/openfreeai" style="margin: 4px;">
103
- <img src="https://img.shields.io/badge/HuggingFace-FCC72E?style=for-the-badge&logo=huggingface&logoColor=black" alt="HuggingFace">
104
- </a>
105
- </div>
106
- """)
107
-
108
  # 실행
109
  if __name__ == "__main__":
110
- demo.launch()
 
43
  <h1 style="text-align: center; font-size: 2.2em; margin-bottom: 0.2em;">🎨 BadgeCraft - Beautiful Badge Generator</h1>
44
  <p style="text-align: center; font-size: 1.1em; color: #555;">Design stylish shields.io badges with live preview and HTML snippet generation.</p>
45
 
46
+ <div align="center" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 20px 0; justify-items: center;">
47
+ <a href="https://discord.gg/openfreeai">
48
+ <img alt="Discord" src="https://img.shields.io/badge/Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" />
 
 
 
49
  </a>
50
+ <a href="https://x.com/openfree_ai">
51
+ <img alt="X" src="https://img.shields.io/badge/X.com-000000?style=for-the-badge&logo=X&logoColor=white" />
52
  </a>
53
+ <a href="https://huggingface.co/collections/VIDraft/best-open-ai-services-68057e6e312880ea92abaf4c">
54
  <img alt="Collections" src="https://img.shields.io/badge/Collections-F8F8F8?style=for-the-badge&logo=huggingface&logoColor=black" />
55
  </a>
56
+ <a href="https://huggingface.co/VIDraft">
57
+ <img alt="VIDraft" src="https://img.shields.io/badge/VIDraft-FCD022?style=for-the-badge&logo=huggingface&logoColor=black" />
58
+ </a>
59
+ <a href="https://github.com/openfreeai">
60
+ <img src="https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="GitHub">
61
+ </a>
62
+ <a href="https://twitter.com/openfree_ai">
63
+ <img src="https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" alt="Twitter">
64
+ </a>
65
+ <a href="https://www.linkedin.com/company/openfreeai">
66
+ <img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn">
67
+ </a>
68
+ <a href="https://youtube.com/@openfreeai">
69
+ <img src="https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white" alt="YouTube">
70
+ </a>
71
+ <a href="https://huggingface.co/openfreeai">
72
+ <img src="https://img.shields.io/badge/HuggingFace-FCC72E?style=for-the-badge&logo=huggingface&logoColor=black" alt="HuggingFace">
73
  </a>
74
  </div>
75
  """)
 
95
  for inp in inputs:
96
  inp.change(fn=generate_static_badge, inputs=inputs, outputs=[out_code, out_preview])
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  # 실행
99
  if __name__ == "__main__":
100
+ demo.launch()