yeq6x commited on
Commit
ea8aac1
·
1 Parent(s): 3c6c922
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -1,14 +1,8 @@
1
- # spacesのバージョンがspaces==0.30.4以外の場合pipを実行
2
- import spaces
3
- if spaces.__version__ != "0.30.4":
4
- print("Installing spaces==0.30.4")
5
- os.system("pip install spaces==0.30.4")
6
- else:
7
- print("spaces==0.30.4 is already installed")
8
-
9
  import gradio as gr
10
  import io
11
- import os
12
  from PIL import Image
13
  import base64
14
  from scripts.process_utils import initialize, process_image_as_base64, image_to_base64
 
1
+ # spaces==0.30.4をインストール
2
+ import os
3
+ os.system("pip install spaces==0.30.4")
 
 
 
 
 
4
  import gradio as gr
5
  import io
 
6
  from PIL import Image
7
  import base64
8
  from scripts.process_utils import initialize, process_image_as_base64, image_to_base64