Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def calculate_footprint(car_km, bus_km, train_km, air_km,
|
|
| 31 |
return total_emissions, stats
|
| 32 |
|
| 33 |
# --- Default system prompt ----------------------------------------------------
|
| 34 |
-
|
| 35 |
You are Sustainable.ai, a friendly, encouraging, and knowledgeable AI assistant.
|
| 36 |
Always provide practical sustainability suggestions that are easy to adopt,
|
| 37 |
while keeping a supportive and positive tone. Prefer actionable steps over theory.
|
|
@@ -113,7 +113,6 @@ demo = gr.ChatInterface(
|
|
| 113 |
fn=respond,
|
| 114 |
type="messages",
|
| 115 |
additional_inputs=[
|
| 116 |
-
gr.Textbox(value=DEFAULT_SYSTEM_PROMPT, label="System Prompt"),
|
| 117 |
gr.Slider(0, 500, value=50, step=10, label="Car km/week"),
|
| 118 |
gr.Slider(0, 500, value=20, step=10, label="Bus km/week"),
|
| 119 |
gr.Slider(0, 500, value=20, step=10, label="Train km/week"),
|
|
|
|
| 31 |
return total_emissions, stats
|
| 32 |
|
| 33 |
# --- Default system prompt ----------------------------------------------------
|
| 34 |
+
system_message = """
|
| 35 |
You are Sustainable.ai, a friendly, encouraging, and knowledgeable AI assistant.
|
| 36 |
Always provide practical sustainability suggestions that are easy to adopt,
|
| 37 |
while keeping a supportive and positive tone. Prefer actionable steps over theory.
|
|
|
|
| 113 |
fn=respond,
|
| 114 |
type="messages",
|
| 115 |
additional_inputs=[
|
|
|
|
| 116 |
gr.Slider(0, 500, value=50, step=10, label="Car km/week"),
|
| 117 |
gr.Slider(0, 500, value=20, step=10, label="Bus km/week"),
|
| 118 |
gr.Slider(0, 500, value=20, step=10, label="Train km/week"),
|