Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|