Srj-ai commited on
Commit
345f736
·
verified ·
1 Parent(s): bb744be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def describe_image(path):
27
  image_captioner = pipeline(
28
  "image-to-text",
29
  model="Salesforce/blip-image-captioning-base"
30
- )
31
  return image_captioner(path)[0]["generated_text"]
32
 
33
  @tool
@@ -37,6 +37,7 @@ def audio_to_text_tool(audio_file_path):
37
  """
38
  output = SpeechToTextTool()
39
  return output
 
40
  @tool
41
  def excel_reader(file_path):
42
  """ reads an excel file. Requires the file path as input. Return rows and columns of a data frame.
 
27
  image_captioner = pipeline(
28
  "image-to-text",
29
  model="Salesforce/blip-image-captioning-base"
30
+ )
31
  return image_captioner(path)[0]["generated_text"]
32
 
33
  @tool
 
37
  """
38
  output = SpeechToTextTool()
39
  return output
40
+
41
  @tool
42
  def excel_reader(file_path):
43
  """ reads an excel file. Requires the file path as input. Return rows and columns of a data frame.