kuzumab commited on
Commit
46e838c
·
verified ·
1 Parent(s): 1af8182

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = "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,7 +32,7 @@ class AttachmentDownloadTool(Tool):
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,7 +60,7 @@ class ImageCaptionTool(Tool):
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": {
 
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": {