bstraehle commited on
Commit
867df24
·
verified ·
1 Parent(s): 1cfe39c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -13,7 +13,7 @@ from utils.utils import (
13
 
14
  # Configuration
15
 
16
- #SPACE_ID = os.environ.get("SPACE_ID", "bstraehle/gaia")
17
 
18
  # MCP server functions
19
 
@@ -67,8 +67,8 @@ def ask(question, openai_api_key, gemini_api_key, anthropic_api_key, file_name =
67
 
68
  def update_file_link(file_name):
69
  if file_name:
70
- #base_url = f"https://huggingface.co/spaces/{SPACE_ID}/blob/main/files"
71
- return f'<a href="files/{file_name}" target="_blank">Open File</a>'
72
 
73
  return ""
74
 
@@ -85,9 +85,8 @@ DESCRIPTION = (
85
  f"The system can solve <a href='https://arxiv.org/pdf/2311.12983'>GAIA Benchmark</a> "
86
  f"Level 1, 2, 3 and <a href='https://arxiv.org/pdf/2501.14249'>Humanity's Last Exam</a> "
87
  f"problems. To get started with the <strong>GUI</strong>, select from the examples below. "
88
- f"To use via <strong>API</strong> or <strong>MCP</strong>, see the link below. "
89
- f"Bring your own API keys. "
90
- f"<a href='README.md'>Documentation</a></p>"
91
  )
92
 
93
  DEFAULT_QUESTION = "In MCP's 1st Birthday Hackathon, hosted by Anthropic and Gradio, what percentage of participants submitted a solution so far?"
 
13
 
14
  # Configuration
15
 
16
+ SPACE_ID = os.environ.get("SPACE_ID", "bstraehle/gaia")
17
 
18
  # MCP server functions
19
 
 
67
 
68
  def update_file_link(file_name):
69
  if file_name:
70
+ base_url = f"https://huggingface.co/spaces/{SPACE_ID}/blob/main/files"
71
+ return f"<a href='{base_url}/{file_name}' target="_blank">Open File</a>"
72
 
73
  return ""
74
 
 
85
  f"The system can solve <a href='https://arxiv.org/pdf/2311.12983'>GAIA Benchmark</a> "
86
  f"Level 1, 2, 3 and <a href='https://arxiv.org/pdf/2501.14249'>Humanity's Last Exam</a> "
87
  f"problems. To get started with the <strong>GUI</strong>, select from the examples below. "
88
+ f"To use via <strong>API</strong> or <strong>MCP</strong>, see the link below. Bring your own API keys. "
89
+ f"<a href='https://huggingface.co/spaces/{SPACE_ID}/blob/main/README.md'>Documentation</a></p>"
 
90
  )
91
 
92
  DEFAULT_QUESTION = "In MCP's 1st Birthday Hackathon, hosted by Anthropic and Gradio, what percentage of participants submitted a solution so far?"