Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import io
|
|
10 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
11 |
|
12 |
class AttachmentDownloadTool(Tool):
|
13 |
-
name = "
|
14 |
description = "Downloads the file associated with the given task_id. If it does not exist, return None. input: task_id。output: attachment files bytes or None"
|
15 |
inputs = {
|
16 |
"task_id": {
|
@@ -32,7 +32,7 @@ class AttachmentDownloadTool(Tool):
|
|
32 |
return None
|
33 |
|
34 |
class ImageCaptionTool(Tool):
|
35 |
-
name = "
|
36 |
description = "Identify the content of the input image and describe it in natural language. Input: image. Output: description text."
|
37 |
inputs = {
|
38 |
"image": {
|
@@ -60,7 +60,7 @@ class ImageCaptionTool(Tool):
|
|
60 |
return str(result)
|
61 |
|
62 |
class AudioToTextTool(Tool):
|
63 |
-
name = "
|
64 |
description = "Convert the input audio content to text. Input: audio. Output: text."
|
65 |
inputs = {
|
66 |
"audio": {
|
|
|
10 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
11 |
|
12 |
class AttachmentDownloadTool(Tool):
|
13 |
+
name = "attachment_downloader"
|
14 |
description = "Downloads the file associated with the given task_id. If it does not exist, return None. input: task_id。output: attachment files bytes or None"
|
15 |
inputs = {
|
16 |
"task_id": {
|
|
|
32 |
return None
|
33 |
|
34 |
class ImageCaptionTool(Tool):
|
35 |
+
name = "image_captioner"
|
36 |
description = "Identify the content of the input image and describe it in natural language. Input: image. Output: description text."
|
37 |
inputs = {
|
38 |
"image": {
|
|
|
60 |
return str(result)
|
61 |
|
62 |
class AudioToTextTool(Tool):
|
63 |
+
name = "audio_to_text"
|
64 |
description = "Convert the input audio content to text. Input: audio. Output: text."
|
65 |
inputs = {
|
66 |
"audio": {
|