Update app.py
Browse files
app.py
CHANGED
|
@@ -154,5 +154,12 @@ img.save('memi_save.jpg',"JPEG") # 현재 환경에 memi_save라는 이름으로
|
|
| 154 |
image_mod(img)
|
| 155 |
|
| 156 |
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|