crcdng commited on
Commit
d5f6c86
·
1 Parent(s): bd08da1

try fix secret access

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. doomsweek_mcp_server.py +2 -2
app.py CHANGED
@@ -218,7 +218,7 @@ def gradio_interface():
218
 
219
  with gr.Row(equal_height=True):
220
  msg = gr.Textbox(
221
- label="Your Question about Humaiity's Fate",
222
  placeholder="Ask (e.g., 'How likely is it that humanity will survive the next week?')",
223
  scale=4
224
  )
 
218
 
219
  with gr.Row(equal_height=True):
220
  msg = gr.Textbox(
221
+ label="Your Question about Humanity's Fate",
222
  placeholder="Ask (e.g., 'How likely is it that humanity will survive the next week?')",
223
  scale=4
224
  )
doomsweek_mcp_server.py CHANGED
@@ -68,7 +68,6 @@ async def calc_doom_probability():
68
 
69
  nasa_url = "https://api.nasa.gov/neo/rest/v1/feed"
70
 
71
- nasa_api_key = os.getenv("NASA_API_KEY")
72
  if not nasa_api_key:
73
  return "ERROR: NASA_API_KEY not set."
74
  else:
@@ -82,6 +81,7 @@ async def calc_doom_probability():
82
  # demo.launch(mcp_server=True)
83
 
84
  if __name__ == "__main__":
85
- # load_dotenv()
 
86
  print(os.getenv("NASA_API_KEY"))
87
  mcp.run(transport='stdio')
 
68
 
69
  nasa_url = "https://api.nasa.gov/neo/rest/v1/feed"
70
 
 
71
  if not nasa_api_key:
72
  return "ERROR: NASA_API_KEY not set."
73
  else:
 
81
  # demo.launch(mcp_server=True)
82
 
83
  if __name__ == "__main__":
84
+ load_dotenv()
85
+ nasa_api_key = os.getenv("NASA_API_KEY")
86
  print(os.getenv("NASA_API_KEY"))
87
  mcp.run(transport='stdio')