Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ async def summarize(text: str):
|
|
35 |
def chat(text):
|
36 |
loop = asyncio.new_event_loop()
|
37 |
if loop.is_running():
|
38 |
-
return
|
39 |
else:
|
40 |
return asyncio.run(summarize(text))
|
41 |
|
|
|
35 |
def chat(text):
|
36 |
loop = asyncio.new_event_loop()
|
37 |
if loop.is_running():
|
38 |
+
return asyncio.create_task(summarize(text))
|
39 |
else:
|
40 |
return asyncio.run(summarize(text))
|
41 |
|