YKajima commited on
Commit
3190b70
1 Parent(s): de2dd13

add async loop

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. 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
+ }