bokesyo commited on
Commit
c72b1c7
·
1 Parent(s): 9a6b755
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -149,6 +149,8 @@ def upvote(knowledge_base, query):
149
 
150
  print("up", os.path.join(target_cache_dir, f"q-{query_md5}-withpref.json"))
151
 
 
 
152
  return
153
 
154
 
@@ -168,6 +170,9 @@ def downvote(knowledge_base, query):
168
  f.write(json.dumps(data, indent=4, ensure_ascii=False))
169
 
170
  print("down", os.path.join(target_cache_dir, f"q-{query_md5}-withpref.json"))
 
 
 
171
  return
172
 
173
 
@@ -211,5 +216,6 @@ with gr.Blocks() as app:
211
 
212
  gr.Markdown("By using this demo, you agree to share your use data with us for research purpose, to help improve user experience.")
213
 
 
214
  app.launch()
215
 
 
149
 
150
  print("up", os.path.join(target_cache_dir, f"q-{query_md5}-withpref.json"))
151
 
152
+ gr.Info('Received, babe! Thank you!')
153
+
154
  return
155
 
156
 
 
170
  f.write(json.dumps(data, indent=4, ensure_ascii=False))
171
 
172
  print("down", os.path.join(target_cache_dir, f"q-{query_md5}-withpref.json"))
173
+
174
+ gr.Info('Received, babe! Thank you!')
175
+
176
  return
177
 
178
 
 
216
 
217
  gr.Markdown("By using this demo, you agree to share your use data with us for research purpose, to help improve user experience.")
218
 
219
+
220
  app.launch()
221