aaron-di commited on
Commit
2b1a645
Β·
1 Parent(s): 91d8471

update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -12
app.py CHANGED
@@ -80,21 +80,23 @@ def predict(history_planner, history_searcher):
80
  return history_planner, history_searcher
81
 
82
  with gr.Blocks(css="""
83
- .block {margin-top: 20px; padding: 20px; border-radius: 10px; border: 1px solid #ddd;}
84
- .centered-text {text-align: center; font-family: Arial, sans-serif; color: #333;}
85
- .styled-button {background-color: #4A90E2; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer;}
86
- .styled-button:hover {background-color: #357ABD;}
87
- .input-textbox {border-radius: 5px; border: 1px solid #ccc; padding: 10px;}
 
 
88
  """) as demo:
89
- gr.HTML("""<h1 class="centered-text">MindSearch Gradio Demo</h1>""")
90
- gr.HTML("""<p class="centered-text">MindSearch is an open-source AI Search Engine Framework with Perplexity.ai Pro performance. Deploy your own search engine with either closed-source or open-source LLMs.</p>""")
91
 
92
  gr.HTML("""
93
- <div class="centered-text" style="font-size: 16px;">
94
- <a href="https://github.com/InternLM/MindSearch" style="margin-right: 15px; text-decoration: none; color: #4A90E2;">πŸ”— GitHub</a>
95
- <a href="https://arxiv.org/abs/2407.20183" style="margin-right: 15px; text-decoration: none; color: #4A90E2;">πŸ“„ Arxiv</a>
96
- <a href="https://huggingface.co/papers/2407.20183" style="margin-right: 15px; text-decoration: none; color: #4A90E2;">πŸ“š Hugging Face Papers</a>
97
- <a href="https://huggingface.co/spaces/internlm/MindSearch" style="text-decoration: none; color: #4A90E2;">πŸ€— Hugging Face Demo</a>
98
  </div>
99
  """)
100
 
 
80
  return history_planner, history_searcher
81
 
82
  with gr.Blocks(css="""
83
+ .centered-text {text-align: center; font-family: Arial, sans-serif; color: #333; margin-bottom: 10px;}
84
+ .link-container {text-align: center; margin-bottom: 15px;}
85
+ .link-container a {text-decoration: none; color: #4A90E2; margin: 0 10px; font-size: 15px;}
86
+ .link-container a:hover {color: #357ABD;}
87
+ .styled-button {background-color: #357ABD; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; margin: 5px;}
88
+ .styled-button:hover {background-color: #285280;}
89
+ .input-textbox {border-radius: 5px; border: 1px solid #ccc; padding: 10px; width: 100%;}
90
  """) as demo:
91
+ gr.HTML("""<h1 class="centered-text" style="margin-bottom: 5px;">MindSearch Gradio Demo</h1>""")
92
+ gr.HTML("""<p class="centered-text" style="margin-top: 0;">MindSearch is an open-source AI Search Engine Framework with Perplexity.ai Pro performance. Deploy your own search engine with either closed-source or open-source LLMs.</p>""")
93
 
94
  gr.HTML("""
95
+ <div class="link-container">
96
+ <a href="https://github.com/InternLM/MindSearch">πŸ”— GitHub</a>
97
+ <a href="https://arxiv.org/abs/2407.20183">πŸ“„ Arxiv</a>
98
+ <a href="https://huggingface.co/papers/2407.20183">πŸ“š Hugging Face Papers</a>
99
+ <a href="https://huggingface.co/spaces/internlm/MindSearch">πŸ€— Hugging Face Demo</a>
100
  </div>
101
  """)
102