Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,12 +74,7 @@ def infer(audio_file):
|
|
74 |
api_name="/chat"
|
75 |
)
|
76 |
|
77 |
-
# will return a list of outputs, one for each iteration
|
78 |
-
while not result.done():
|
79 |
-
continue
|
80 |
|
81 |
-
# will return a list of outputs, one for each iteration.
|
82 |
-
# so get the last one
|
83 |
final_res = result.outputs()[-1]
|
84 |
|
85 |
print(final_res)
|
|
|
74 |
api_name="/chat"
|
75 |
)
|
76 |
|
|
|
|
|
|
|
77 |
|
|
|
|
|
78 |
final_res = result.outputs()[-1]
|
79 |
|
80 |
print(final_res)
|