Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
 
3
  # 已有的 Hugging Face Space 链接
4
  CALCULATOR_URL = "https://huggingface.co/spaces/EricCRX/Upfront_Embodied_Carbon_Calculator"
5
- PREDICTOR_URL = None # 未来可替换为你的预测模型链接
6
 
7
  with gr.Blocks(title="Unified Carbon Tools") as demo:
8
  gr.Markdown("# 🌍 Unified Carbon Tools")
@@ -20,7 +20,10 @@ with gr.Blocks(title="Unified Carbon Tools") as demo:
20
  )
21
 
22
  with gr.Tab("Predictor"):
23
- gr.Markdown("### 📈 CO₂ Emission Predictor (Coming Soon)")
 
 
 
24
  gr.Markdown(
25
  "This section will link to a **time-series ML model** that forecasts future CO₂ emissions "
26
  "based on historical data and model-inference pipelines."
 
2
 
3
  # 已有的 Hugging Face Space 链接
4
  CALCULATOR_URL = "https://huggingface.co/spaces/EricCRX/Upfront_Embodied_Carbon_Calculator"
5
+ PREDICTOR_URL = "https://huggingface.co/spaces/yl0628/co2-emission-proj1" # 未来可替换为你的预测模型链接
6
 
7
  with gr.Blocks(title="Unified Carbon Tools") as demo:
8
  gr.Markdown("# 🌍 Unified Carbon Tools")
 
20
  )
21
 
22
  with gr.Tab("Predictor"):
23
+ gr.Markdown("### 📈 CO₂ Emission Predictor")
24
+ gr.Markdown(
25
+ f"[👉 Click here to open the Predictor]({PREDICTOR_URL})"
26
+ )
27
  gr.Markdown(
28
  "This section will link to a **time-series ML model** that forecasts future CO₂ emissions "
29
  "based on historical data and model-inference pipelines."