crcdng
commited on
Commit
·
a87a168
1
Parent(s):
f0fd2aa
calc_factor
Browse files
app.py
CHANGED
@@ -43,6 +43,15 @@ def fetch_nasa():
|
|
43 |
json = orjson.loads(rawdata.content)
|
44 |
|
45 |
return json.get("near_earth_objects", {}).get("2025-06-11", [])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
-
demo = gr.Interface(fn=
|
48 |
demo.launch(mcp_server=True)
|
|
|
43 |
json = orjson.loads(rawdata.content)
|
44 |
|
45 |
return json.get("near_earth_objects", {}).get("2025-06-11", [])
|
46 |
+
|
47 |
+
|
48 |
+
def calc_factor():
|
49 |
+
"""
|
50 |
+
Calculates the overall doom probability.
|
51 |
+
|
52 |
+
Returns:
|
53 |
+
The overall doom probability for the next seven days.
|
54 |
+
"""
|
55 |
|
56 |
+
demo = gr.Interface(fn=calc_factor, inputs=None, outputs="text")
|
57 |
demo.launch(mcp_server=True)
|