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[
|
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")
|