SenY commited on
Commit
c0a8798
·
1 Parent(s): 95e6d1e
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def greet(query):
21
  fileid = str(name2fileid[query])
22
 
23
  if fileid in fileid2json:
24
- result = json.dumps(fileid2json[query.strip()])
25
  return result
26
 
27
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
21
  fileid = str(name2fileid[query])
22
 
23
  if fileid in fileid2json:
24
+ result = json.dumps(fileid2json[fileid.strip()])
25
  return result
26
 
27
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")