Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM
|
| 2 |
import gradio as gr
|
| 3 |
|
|
|
|
| 1 |
+
try:
|
| 2 |
+
import detectron2
|
| 3 |
+
except:
|
| 4 |
+
import os
|
| 5 |
+
os.system('pip install git+https://github.com/facebookresearch/detectron2.git')
|
| 6 |
+
|
| 7 |
from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM
|
| 8 |
import gradio as gr
|
| 9 |
|