Spaces:
Runtime error
Runtime error
Add comments
Browse files- code_tasks/custom.py +6 -0
- code_tasks/image_dimensions.py +4 -0
code_tasks/custom.py
CHANGED
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from concurrent.futures import ThreadPoolExecutor
|
2 |
from typing import Dict, List
|
3 |
|
|
|
1 |
+
"""
|
2 |
+
Code here was custom written, but based on ChatGPT-4.
|
3 |
+
Example prompt: write a python function that uses an api that given an image returns a text summary of it
|
4 |
+
"""
|
5 |
+
|
6 |
+
|
7 |
from concurrent.futures import ThreadPoolExecutor
|
8 |
from typing import Dict, List
|
9 |
|
code_tasks/image_dimensions.py
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
from PIL import Image
|
2 |
import requests
|
3 |
from io import BytesIO
|
|
|
1 |
+
"""
|
2 |
+
ChatGPT-4 prompt: write a python function that given an image url gets its dimensions
|
3 |
+
"""
|
4 |
+
|
5 |
from PIL import Image
|
6 |
import requests
|
7 |
from io import BytesIO
|