Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from PIL import Image
|
| 3 |
import numpy as np
|
| 4 |
import torch
|
| 5 |
from transformers import DetrImageProcessor, DetrForObjectDetection
|
| 6 |
from gtts import gTTS
|
| 7 |
-
import os
|
| 8 |
|
| 9 |
# Load the model and processor
|
| 10 |
@st.cache_resource # Cache the model to improve performance
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from PIL import Image
|
| 3 |
import numpy as np
|
| 4 |
import torch
|
| 5 |
from transformers import DetrImageProcessor, DetrForObjectDetection
|
| 6 |
from gtts import gTTS
|
|
|
|
| 7 |
|
| 8 |
# Load the model and processor
|
| 9 |
@st.cache_resource # Cache the model to improve performance
|