openfree commited on
Commit
6fab39e
·
verified ·
1 Parent(s): fda8fd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -19
app.py CHANGED
@@ -1,22 +1,3 @@
1
- <div align="center" style="line-height: 1;">
2
- <a href=" https://discord.gg/openfreeai" style="margin: 2px;">
3
- <img alt="OpenFree AI Discord Server" src="https://img.shields.io/badge/Discord-000000?style=for-the-badge&logo=discord&logoColor=000&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
4
- </a>
5
- <a href=" https://x.com/openfree_ai" style="margin: 2px;">
6
- <img alt="OpenFree AI x.com" src="https://img.shields.io/badge/twitter-000000?style=for-the-badge&logo=twitter&logoColor=000&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
7
- </a>
8
- <a href="https://huggingface.co/collections/VIDraft/best-open-ai-services-68057e6e312880ea92abaf4c" style="margin: 2px;">
9
- <img alt="Collections" src="https://img.shields.io/badge/Collections-f000000?style=for-the-badge&logo=huggingface&logoColor=000&labelColor" style="display: inline-block; vertical-align: middle;"/>
10
- </a>
11
- <a href="https://huggingface.co/VIDraft" style="margin: 2px;">
12
- <img alt="HF Page" src="https://img.shields.io/badge/VIDraft-fcd022?style=for-the-badge&logo=huggingface&logoColor=000&labelColor" style="display: inline-block; vertical-align: middle;"/>
13
- </a>
14
- </div>
15
-
16
- <div align="center" style="font-weight: bold; margin-top: 10px; margin-bottom: 15px;">
17
- Papers Leaderboard: <a href="https://huggingface.co/spaces/Heartsync/Papers-Leaderboard">https://huggingface.co/spaces/Heartsync/Papers-Leaderboard</a>
18
- </div>
19
-
20
  import gradio as gr
21
  import spaces
22
  import torch
@@ -236,6 +217,30 @@ css = """
236
  }
237
  """
238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  ##################################################
240
  # Example Papers
241
  ##################################################
@@ -288,6 +293,9 @@ example_papers = [
288
  # Build the Gradio Interface
289
  ##################################################
290
  with gr.Blocks(theme=gr.themes.Default(), css=css) as iface:
 
 
 
291
  gr.Markdown("<div class='main-title'>Papers Impact: AI-Powered Research Impact Predictor</div>")
292
  gr.Markdown("**Predict the potential research impact (0–1) from title & abstract.**")
293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import spaces
3
  import torch
 
217
  }
218
  """
219
 
220
+ ##################################################
221
+ # Header HTML (social links)
222
+ ##################################################
223
+ header_html = """
224
+ <div align="center" style="line-height: 1;">
225
+ <a href="https://discord.gg/openfreeai" style="margin: 2px;">
226
+ <img alt="OpenFree AI Discord Server" src="https://img.shields.io/badge/Discord-000000?style=for-the-badge&logo=discord&logoColor=000&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
227
+ </a>
228
+ <a href="https://x.com/openfree_ai" style="margin: 2px;">
229
+ <img alt="OpenFree AI x.com" src="https://img.shields.io/badge/twitter-000000?style=for-the-badge&logo=twitter&logoColor=000&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
230
+ </a>
231
+ <a href="https://huggingface.co/collections/VIDraft/best-open-ai-services-68057e6e312880ea92abaf4c" style="margin: 2px;">
232
+ <img alt="Collections" src="https://img.shields.io/badge/Collections-f000000?style=for-the-badge&logo=huggingface&logoColor=000&labelColor" style="display: inline-block; vertical-align: middle;"/>
233
+ </a>
234
+ <a href="https://huggingface.co/VIDraft" style="margin: 2px;">
235
+ <img alt="HF Page" src="https://img.shields.io/badge/VIDraft-fcd022?style=for-the-badge&logo=huggingface&logoColor=000&labelColor" style="display: inline-block; vertical-align: middle;"/>
236
+ </a>
237
+ </div>
238
+
239
+ <div align="center" style="font-weight: bold; margin-top: 10px; margin-bottom: 15px;">
240
+ <b>Papers Leaderboard: <a href="https://huggingface.co/spaces/Heartsync/Papers-Leaderboard">https://huggingface.co/spaces/Heartsync/Papers-Leaderboard</a></b>
241
+ </div>
242
+ """
243
+
244
  ##################################################
245
  # Example Papers
246
  ##################################################
 
293
  # Build the Gradio Interface
294
  ##################################################
295
  with gr.Blocks(theme=gr.themes.Default(), css=css) as iface:
296
+ # Add the social media links and leaderboard link at the top
297
+ gr.HTML(header_html)
298
+
299
  gr.Markdown("<div class='main-title'>Papers Impact: AI-Powered Research Impact Predictor</div>")
300
  gr.Markdown("**Predict the potential research impact (0–1) from title & abstract.**")
301