fffiloni commited on
Commit
028779a
1 Parent(s): 7718032

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,13 +10,13 @@ def infer(audio_file):
10
 
11
  cap_result = lpmc_client(
12
  audio_file, # str (filepath or URL to file) in 'audio_path' Audio component
13
- api_name="predict"
14
  )
15
  print(cap_result)
16
 
17
  result = client.predict(
18
  cap_result, # str in 'Message' Textbox component
19
- api_name="chat"
20
  )
21
 
22
  print(result)
 
10
 
11
  cap_result = lpmc_client(
12
  audio_file, # str (filepath or URL to file) in 'audio_path' Audio component
13
+ api_name="/predict"
14
  )
15
  print(cap_result)
16
 
17
  result = client.predict(
18
  cap_result, # str in 'Message' Textbox component
19
+ api_name="/chat"
20
  )
21
 
22
  print(result)