File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ async def run_async(
126
126
"""
127
127
return await self .runner .run ({"file_path" : file_path , "text" : text })
128
128
129
- def run (self , file_path : Optional [str ] = None , text : Optional [str ] = None ) -> PipelineResult :
129
+ def run (
130
+ self , file_path : Optional [str ] = None , text : Optional [str ] = None
131
+ ) -> PipelineResult :
130
132
"""Run pipeline synchronously"""
131
- return run_sync (self , file_path = file_path , text = text )
133
+ return run_sync (self . run_async , file_path = file_path , text = text )
Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
from __future__ import annotations
16
16
17
- from functools import wraps
18
- from typing import Optional
19
17
import asyncio
20
18
import concurrent .futures
19
+ from functools import wraps
20
+ from typing import Optional
21
21
22
22
23
23
def validate_search_query_input (
@@ -38,4 +38,5 @@ def async_to_sync(func):
38
38
@wraps (func )
39
39
def wrapper (* args , ** kwargs ):
40
40
return run_sync (func , * args , ** kwargs )
41
+
41
42
return wrapper
You can’t perform that action at this time.
0 commit comments