Spaces:
Sleeping
Sleeping
add anyio
Browse files- app.py +3 -2
- requirements.txt +3 -1
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from spiralfilm import FilmCore, FilmConfig
|
|
|
3 |
import asyncio
|
4 |
|
5 |
-
# asyncio
|
6 |
-
asyncio.
|
7 |
|
8 |
def greet(name):
|
9 |
return "こんにちは " + name + "さん!! \n僕はパスカルくんだよ。よろしくね"
|
|
|
1 |
import gradio as gr
|
2 |
from spiralfilm import FilmCore, FilmConfig
|
3 |
+
import anyio
|
4 |
import asyncio
|
5 |
|
6 |
+
# asyncioイベントループのポリシーを設定
|
7 |
+
asyncio.set_event_loop_policy(anyio.AnyIOEventLoopPolicy())
|
8 |
|
9 |
def greet(name):
|
10 |
return "こんにちは " + name + "さん!! \n僕はパスカルくんだよ。よろしくね"
|
requirements.txt
CHANGED
@@ -1 +1,3 @@
|
|
1 |
-
SpiralFilm==0.2.5
|
|
|
|
|
|
1 |
+
SpiralFilm==0.2.5
|
2 |
+
anyio==4.3.0
|
3 |
+
|