Spaces:
Sleeping
Sleeping
fixed minor issue
Browse files- app.py +2 -1
- requirements.txt +1 -0
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
os.system('python -m pip install \'git+https://github.com/facebookresearch/detectron2.git\'')
|
3 |
|
4 |
import cv2
|
@@ -45,4 +46,4 @@ iface = gr.Interface(fn=predict,
|
|
45 |
inputs=[image_input],
|
46 |
outputs=gr.Image(type="pil"),
|
47 |
examples=[["examples/trump-fake.jpeg"]])
|
48 |
-
iface.launch()
|
|
|
1 |
import os
|
2 |
+
|
3 |
os.system('python -m pip install \'git+https://github.com/facebookresearch/detectron2.git\'')
|
4 |
|
5 |
import cv2
|
|
|
46 |
inputs=[image_input],
|
47 |
outputs=gr.Image(type="pil"),
|
48 |
examples=[["examples/trump-fake.jpeg"]])
|
49 |
+
iface.launch()
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
gradio==4.29.0
|
2 |
numpy==1.23.5
|
3 |
opencv_python==4.8.0.76
|
|
|
1 |
+
torch==1.13.0
|
2 |
gradio==4.29.0
|
3 |
numpy==1.23.5
|
4 |
opencv_python==4.8.0.76
|