Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -142,7 +142,7 @@ def generate_image(description: str) -> bytes:
|
|
142 |
|
143 |
# Function to fetch endangered species data
|
144 |
def fetch_endangered_species(city: str) -> dict:
|
145 |
-
prompt = f"Provide details of an endangered species in {city}, including its name, image description, and current population."
|
146 |
response = openai.ChatCompletion.create(
|
147 |
model="gpt-3.5-turbo",
|
148 |
messages=[{"role": "user", "content": prompt}],
|
|
|
142 |
|
143 |
# Function to fetch endangered species data
|
144 |
def fetch_endangered_species(city: str) -> dict:
|
145 |
+
prompt = f"Provide details of an endangered species which is highly specific in {city}, including its name, image description, and current population."
|
146 |
response = openai.ChatCompletion.create(
|
147 |
model="gpt-3.5-turbo",
|
148 |
messages=[{"role": "user", "content": prompt}],
|