Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,9 +70,9 @@ def get_image_url(image_type: str):
|
|
| 70 |
# # If no exact match, look for a partial match
|
| 71 |
# for key in image_sources:
|
| 72 |
# if image_type in key.lower(): # Check if input is a substring of a key
|
| 73 |
-
# return image_sources[key]
|
| 74 |
-
|
| 75 |
-
|
| 76 |
async def capture_screenshot(image_type: str):
|
| 77 |
"""Launches Playwright and uses user input, if any, to captures a screenshot of an image from p5.js."""
|
| 78 |
print("Launching Playwright...")
|
|
|
|
| 70 |
# # If no exact match, look for a partial match
|
| 71 |
# for key in image_sources:
|
| 72 |
# if image_type in key.lower(): # Check if input is a substring of a key
|
| 73 |
+
# return image_sources[key]
|
| 74 |
+
# return None # No match found
|
| 75 |
+
|
| 76 |
async def capture_screenshot(image_type: str):
|
| 77 |
"""Launches Playwright and uses user input, if any, to captures a screenshot of an image from p5.js."""
|
| 78 |
print("Launching Playwright...")
|