Karumoon commited on
Commit
6a228d3
·
1 Parent(s): 4ef6a52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -154,5 +154,12 @@ img.save('memi_save.jpg',"JPEG") # 현재 환경에 memi_save라는 이름으로
154
  image_mod(img)
155
 
156
 
157
- is_colab=True
 
 
 
 
 
 
 
158
  demo.launch(debug=is_colab, share=is_colab)
 
154
  image_mod(img)
155
 
156
 
157
+ def is_google_colab():
158
+ try:
159
+ import google.colab
160
+ return True
161
+ except:
162
+ return False
163
+
164
+ is_colab=is_google_colab()
165
  demo.launch(debug=is_colab, share=is_colab)