shukdevdatta123 commited on
Commit
e6f8836
·
verified ·
1 Parent(s): d1aadf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +40 -0
app.py CHANGED
@@ -175,6 +175,46 @@ with gr.Blocks(title="Smart Environmental Impact Analyzer") as app:
175
  This tool analyzes environmental impacts using Gemini 2.5 Pro AI.
176
  Choose an analysis type and provide the required information.
177
  """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
 
179
  api_key = gr.Textbox(label="OpenRouter API Key", placeholder="Enter your OpenRouter API key", type="password")
180
 
 
175
  This tool analyzes environmental impacts using Gemini 2.5 Pro AI.
176
  Choose an analysis type and provide the required information.
177
  """)
178
+
179
+ with gr.Accordion("Sample Example Inputs", open=False):
180
+ gr.Markdown("""
181
+ ### API Key Input:
182
+ First, you'll need an OpenRouter API key. If you don't have one, you can get it from [openrouter.ai](https://openrouter.ai). This should be entered in the "OpenRouter API Key" field.
183
+ Sample API key format (not a real key):
184
+ ```
185
+ sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
186
+ ```
187
+
188
+ ### Image Analysis Tab:
189
+ Upload an image like:
190
+ - A cityscape with visible pollution
191
+ - A forest or natural area
192
+ - An industrial facility
193
+ - A solar farm or wind turbines
194
+ - A beach with visible plastic waste
195
+
196
+ For testing purposes, you could use public domain environmental images from sites like [Unsplash](https://unsplash.com) or [Pexels](https://www.pexels.com).
197
+
198
+ ### Geographical Assessment Tab:
199
+ Sample location inputs:
200
+ - **New York City, USA**
201
+ - **Copenhagen, Denmark**
202
+ - **Amazon Rainforest, Brazil**
203
+ - **Great Barrier Reef, Australia**
204
+
205
+ ### Product Assessment Tab:
206
+ Sample product descriptions:
207
+ 1. **Plastic water bottle** made from PET plastic. Single-use design with a plastic cap. Manufactured in China and shipped globally. Typical lifecycle includes production, distribution, single use, and disposal, with most bottles ending up in landfills or as litter.
208
+ 2. **Electric car** with a 75kWh lithium-ion battery. Aluminum and steel body with leather interior. Manufactured in California, USA. Average lifespan of 15 years or 200,000 miles. Battery requires rare earth minerals from mining operations.
209
+ 3. **Organic cotton t-shirt**, grown without pesticides or synthetic fertilizers. Made in India using natural dyes. Packaged in recycled paper. Designed to last approximately 50 washes.
210
+
211
+ ### Custom Query Tab:
212
+ Sample queries:
213
+ 1. What is the environmental impact of bitcoin mining and cryptocurrency operations? How does it compare to traditional banking systems?
214
+ 2. How would switching to a plant-based diet for one year affect my personal carbon footprint? What specific food choices would have the biggest positive impact?
215
+ 3. What are the environmental trade-offs between paper packaging and plastic packaging for food products? When is each option more sustainable?
216
+ 4. How does fast fashion impact water resources? What sustainable alternatives exist?
217
+ """)
218
 
219
  api_key = gr.Textbox(label="OpenRouter API Key", placeholder="Enter your OpenRouter API key", type="password")
220