Spaces:
Sleeping
Sleeping
Kesheratmex
commited on
Commit
路
12ce9c5
1
Parent(s):
90c18be
Remove auth param (Gradio) & set OMP_NUM_THREADS
Browse files
app.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
import gradio as gr, tempfile, shutil, os
|
| 2 |
from ultralytics import YOLO
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
model = YOLO('best.pt')
|
| 5 |
|
|
@@ -14,9 +17,9 @@ demo = gr.Interface(
|
|
| 14 |
fn=infer,
|
| 15 |
inputs=gr.Video(label="Sube tu video de inspecci贸n"),
|
| 16 |
outputs=gr.Video(label="Video con defectos detectados"),
|
| 17 |
-
title="Kesherat 路 Inspecci贸n de palas e贸licas"
|
| 18 |
-
auth=[("admin","TuPassSecreta")]
|
| 19 |
)
|
| 20 |
|
|
|
|
| 21 |
if __name__ == "__main__":
|
| 22 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr, tempfile, shutil, os
|
| 2 |
from ultralytics import YOLO
|
| 3 |
+
import os
|
| 4 |
+
os.environ["OMP_NUM_THREADS"] = "1"
|
| 5 |
+
|
| 6 |
|
| 7 |
model = YOLO('best.pt')
|
| 8 |
|
|
|
|
| 17 |
fn=infer,
|
| 18 |
inputs=gr.Video(label="Sube tu video de inspecci贸n"),
|
| 19 |
outputs=gr.Video(label="Video con defectos detectados"),
|
| 20 |
+
title="Kesherat 路 Inspecci贸n de palas e贸licas"
|
|
|
|
| 21 |
)
|
| 22 |
|
| 23 |
+
|
| 24 |
if __name__ == "__main__":
|
| 25 |
demo.launch()
|