Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -469,6 +469,10 @@ def get_weather_icon(condition):
|
|
| 469 |
}
|
| 470 |
return condition_map.get(condition, "c04d")
|
| 471 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 472 |
|
| 473 |
# Voice Control
|
| 474 |
import numpy as np
|
|
@@ -577,10 +581,7 @@ def generate_image(prompt):
|
|
| 577 |
# Hardcoded prompt for image generation
|
| 578 |
hardcoded_prompt = "Useing The top events like 'Summer Art Festival' and current time - 4:07 PM ,Date - 06/17/2024 ,Weather-Sunny Bright Day.Create Highly Visually Compelling High Resolution and High Quality Photographics Advatizement for 'Toyota'"
|
| 579 |
|
| 580 |
-
|
| 581 |
-
weather_details = fetch_local_weather()
|
| 582 |
-
current_time_and_date = get_current_time_and_date()
|
| 583 |
-
local_events_details = fetch_local_events()
|
| 584 |
|
| 585 |
|
| 586 |
with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|
|
|
|
| 469 |
}
|
| 470 |
return condition_map.get(condition, "c04d")
|
| 471 |
|
| 472 |
+
# Update prompt templates to include fetched details
|
| 473 |
+
weather_details = fetch_local_weather()
|
| 474 |
+
current_time_and_date = get_current_time_and_date()
|
| 475 |
+
local_events_details = fetch_local_events()
|
| 476 |
|
| 477 |
# Voice Control
|
| 478 |
import numpy as np
|
|
|
|
| 581 |
# Hardcoded prompt for image generation
|
| 582 |
hardcoded_prompt = "Useing The top events like 'Summer Art Festival' and current time - 4:07 PM ,Date - 06/17/2024 ,Weather-Sunny Bright Day.Create Highly Visually Compelling High Resolution and High Quality Photographics Advatizement for 'Toyota'"
|
| 583 |
|
| 584 |
+
|
|
|
|
|
|
|
|
|
|
| 585 |
|
| 586 |
|
| 587 |
with gr.Blocks(theme='rawrsor1/Everforest') as demo:
|