methodw commited on
Commit
bb75ee4
·
1 Parent(s): 4b65cf1

try to debug json error

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -78,12 +78,11 @@ def process_image(image):
78
  {"name": 1, "type": 1, "url": 1, "gamerpics.$": 1},
79
  )
80
 
81
- print(title)
82
-
83
  title["rank"] = idx
84
  title["score"] = str(round((1 / (distances[0][idx] + 1) * 100), 2)) + "%"
85
  matches.append(title)
86
 
 
87
  return matches
88
 
89
 
@@ -95,4 +94,4 @@ iface = gr.Interface(
95
  )
96
 
97
  # Launch the Gradio app
98
- iface.launch(share="true")
 
78
  {"name": 1, "type": 1, "url": 1, "gamerpics.$": 1},
79
  )
80
 
 
 
81
  title["rank"] = idx
82
  title["score"] = str(round((1 / (distances[0][idx] + 1) * 100), 2)) + "%"
83
  matches.append(title)
84
 
85
+ print(matches)
86
  return matches
87
 
88
 
 
94
  )
95
 
96
  # Launch the Gradio app
97
+ iface.launch()