Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,12 @@ from matplotlib import pyplot as plt
|
|
11 |
import time
|
12 |
import cv2
|
13 |
from numpy import asarray
|
14 |
-
import streamlit as st
|
15 |
import gradio as gr
|
16 |
-
st.title("Tag_Diciphering")
|
17 |
-
def prediction():
|
18 |
total_time_start = time.time()
|
|
|
19 |
|
20 |
|
21 |
def loadImageIntoNumpyArray(image):
|
@@ -139,4 +140,4 @@ def prediction():
|
|
139 |
print("total time : ",round((total_time_end-total_time_start),2))
|
140 |
st.write(str(simplejson.dumps(response)))
|
141 |
|
142 |
-
prediction()
|
|
|
11 |
import time
|
12 |
import cv2
|
13 |
from numpy import asarray
|
14 |
+
#import streamlit as st
|
15 |
import gradio as gr
|
16 |
+
#st.title("Tag_Diciphering")
|
17 |
+
def prediction(path_image):
|
18 |
total_time_start = time.time()
|
19 |
+
image_path = path_image
|
20 |
|
21 |
|
22 |
def loadImageIntoNumpyArray(image):
|
|
|
140 |
print("total time : ",round((total_time_end-total_time_start),2))
|
141 |
st.write(str(simplejson.dumps(response)))
|
142 |
|
143 |
+
prediction("img1")
|