Spaces:
Sleeping
Sleeping
add async loop
Browse files- app.py +3 -0
- package-lock.json +6 -0
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
from spiralfilm import FilmCore, FilmConfig
|
|
|
3 |
|
|
|
|
|
4 |
|
5 |
def greet(name):
|
6 |
return "こんにちは " + name + "さん!! \n僕はパスカルくんだよ。よろしくね"
|
|
|
1 |
import gradio as gr
|
2 |
from spiralfilm import FilmCore, FilmConfig
|
3 |
+
import asyncio
|
4 |
|
5 |
+
# asyncioのイベントループを設定
|
6 |
+
asyncio.set_event_loop(asyncio.new_event_loop())
|
7 |
|
8 |
def greet(name):
|
9 |
return "こんにちは " + name + "さん!! \n僕はパスカルくんだよ。よろしくね"
|
package-lock.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "pascal-kun",
|
3 |
+
"lockfileVersion": 3,
|
4 |
+
"requires": true,
|
5 |
+
"packages": {}
|
6 |
+
}
|