Update app.py
Browse files
app.py
CHANGED
@@ -47,14 +47,10 @@ def search_pixabay(query: str = "", media_type: str = "Image", image_type: str =
|
|
47 |
|
48 |
Args:
|
49 |
query (str): The search term for finding stock media.
|
50 |
-
media_type (str): Specifies the type of media to search for.
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
orientation (str): Filter results by image orientation (used only if media_type is "Image").
|
55 |
-
Accepted values: "all", "horizontal", "vertical". Defaults to "all".
|
56 |
-
video_type (str): Filter results by video type (used only if media_type is "Video").
|
57 |
-
Accepted values: "all", "film", "animation". Defaults to "all".
|
58 |
|
59 |
Returns:
|
60 |
tuple: Contains three elements:
|
@@ -135,10 +131,8 @@ def together_text_to_image(prompt: str = "", width: int = 1024, height: int = 10
|
|
135 |
|
136 |
Args:
|
137 |
prompt (str): The text prompt to generate the image from.
|
138 |
-
width (int): The width of the generated image in pixels.
|
139 |
-
|
140 |
-
height (int): The height of the generated image in pixels.
|
141 |
-
Must be between 512 and 1440. Defaults to 1024.
|
142 |
|
143 |
Returns:
|
144 |
str: The URL of the generated image if successful, or an error message if not.
|
|
|
47 |
|
48 |
Args:
|
49 |
query (str): The search term for finding stock media.
|
50 |
+
media_type (str): Specifies the type of media to search for. Accepted values are "Image" or "Video". Defaults to "Image".
|
51 |
+
image_type (str): Filter results by image type (used only if media_type is "Image"). Accepted values: "all", "photo", "illustration", "vector". Defaults to "all".
|
52 |
+
orientation (str): Filter results by image orientation (used only if media_type is "Image"). Accepted values: "all", "horizontal", "vertical". Defaults to "all".
|
53 |
+
video_type (str): Filter results by video type (used only if media_type is "Video"). Accepted values: "all", "film", "animation". Defaults to "all".
|
|
|
|
|
|
|
|
|
54 |
|
55 |
Returns:
|
56 |
tuple: Contains three elements:
|
|
|
131 |
|
132 |
Args:
|
133 |
prompt (str): The text prompt to generate the image from.
|
134 |
+
width (int): The width of the generated image in pixels. Must be between 512 and 1440. Defaults to 1024.
|
135 |
+
height (int): The height of the generated image in pixels. Must be between 512 and 1440. Defaults to 1024.
|
|
|
|
|
136 |
|
137 |
Returns:
|
138 |
str: The URL of the generated image if successful, or an error message if not.
|