bstraehle commited on
Commit
4542454
·
verified ·
1 Parent(s): 42832b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -13,8 +13,6 @@ from utils.utils import (
13
 
14
  # Configuration
15
 
16
- SPACE_AUTHOR_NAME = os.getenv("SPACE_AUTHOR_NAME")
17
-
18
  SPACE_ID = os.environ.get("SPACE_ID")
19
 
20
  BASE_URL = f"https://huggingface.co/spaces/{SPACE_ID}/blob/main"
@@ -71,7 +69,7 @@ def ask(question, openai_api_key, gemini_api_key, anthropic_api_key, file_name =
71
 
72
  def update_file_link(file_name):
73
  if file_name:
74
- return f"<a href='{SPACE_AUTHOR_NAME}/files/{file_name}' target='_blank'>Open File</a>"
75
 
76
  return ""
77
 
@@ -89,7 +87,7 @@ DESCRIPTION = (
89
  f"Level 1, 2, 3 and <a href='https://arxiv.org/pdf/2501.14249'>Humanity's Last Exam</a> "
90
  f"problems. To get started with the <strong>GUI</strong>, select from the examples below. "
91
  f"To use via <strong>API</strong> or <strong>MCP</strong>, see the link below. Bring your own API keys. "
92
- f"<a href='{SPACE_AUTHOR_NAME}/README.md'>Documentation</a></p>"
93
  )
94
 
95
  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")
17
 
18
  BASE_URL = f"https://huggingface.co/spaces/{SPACE_ID}/blob/main"
 
69
 
70
  def update_file_link(file_name):
71
  if file_name:
72
+ return f"<a href='{BASE_URL}/files/{file_name}' target='_blank'>Open File</a>"
73
 
74
  return ""
75
 
 
87
  f"Level 1, 2, 3 and <a href='https://arxiv.org/pdf/2501.14249'>Humanity's Last Exam</a> "
88
  f"problems. To get started with the <strong>GUI</strong>, select from the examples below. "
89
  f"To use via <strong>API</strong> or <strong>MCP</strong>, see the link below. Bring your own API keys. "
90
+ f"<a href='{BASE_URL}/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?"