Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,8 @@ def detect(inp):
|
|
12 |
r = requests.post(url='https://hf.space/gradioiframe/Sa-m/Political-Party-Symbol-Detector-V1/+/api/predict/',
|
13 |
json={"data": [bs64Data]})
|
14 |
|
15 |
-
|
|
|
16 |
|
17 |
inp = gr.inputs.Image(type='filepath', label="Input Image")
|
18 |
output=gr.outputs.Textbox(label='Response')
|
|
|
12 |
r = requests.post(url='https://hf.space/gradioiframe/Sa-m/Political-Party-Symbol-Detector-V1/+/api/predict/',
|
13 |
json={"data": [bs64Data]})
|
14 |
|
15 |
+
res= r.json()
|
16 |
+
return res
|
17 |
|
18 |
inp = gr.inputs.Image(type='filepath', label="Input Image")
|
19 |
output=gr.outputs.Textbox(label='Response')
|