Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
2f2279c
1
Parent(s):
9ba6616
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
os.system("gdown https://drive.google.com/uc?id=1-95IOJ-2y9BtmABiffIwndPqNZD_gLnV")
|
| 3 |
os.system("unzip big-lama.zip")
|
| 4 |
-
os.system("pip install gradio==2.3.7")
|
| 5 |
import cv2
|
| 6 |
import paddlehub as hub
|
| 7 |
import gradio as gr
|
|
@@ -40,4 +39,4 @@ examples = [
|
|
| 40 |
['person512.png',None,"automatic (U2net)"],
|
| 41 |
['person512.png',"maskexam.png","manual"]
|
| 42 |
]
|
| 43 |
-
gr.Interface(infer, inputs, outputs, title=title, description=description, article=article, examples=examples
|
|
|
|
| 1 |
import os
|
| 2 |
os.system("gdown https://drive.google.com/uc?id=1-95IOJ-2y9BtmABiffIwndPqNZD_gLnV")
|
| 3 |
os.system("unzip big-lama.zip")
|
|
|
|
| 4 |
import cv2
|
| 5 |
import paddlehub as hub
|
| 6 |
import gradio as gr
|
|
|
|
| 39 |
['person512.png',None,"automatic (U2net)"],
|
| 40 |
['person512.png',"maskexam.png","manual"]
|
| 41 |
]
|
| 42 |
+
gr.Interface(infer, inputs, outputs, title=title, description=description, article=article, examples=examples).launch(enable_queue=True,cache_examples=True)
|