Sebastian Hofstätter commited on
Commit
2853348
1 Parent(s): fe5a247

add arxiv link

Browse files
Files changed (3) hide show
  1. .DS_Store +0 -0
  2. app.py +14 -6
  3. data/.DS_Store +0 -0
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
app.py CHANGED
@@ -55,14 +55,14 @@ def render_examples(selected_mode):
55
  t+="<< No provenance returned >>\n\n"
56
  return t
57
 
58
- rendered_examples += "### Query \n"+example["query"]+ "\n"+ \
59
- "### Target Text"+ "\n" + "\n\n".join(example["target_text"])+ "\n"
60
 
61
  if "target_provenance" in example:
62
- rendered_examples+="### Target Provenance"+ "\n"+ render_prov(example["target_provenance"])+ "\n"
63
 
64
- rendered_examples += "### Output Text"+ "\n"+ str(example["output_text"])+ "\n"+ \
65
- "### Output Provenance"+ "\n"+ render_prov(example["output_provenance"])+ "\n"+ \
66
  "\n----\n"
67
 
68
  all_rendered.append(rendered_examples)
@@ -71,8 +71,16 @@ def render_examples(selected_mode):
71
  with gr.Blocks() as interface:
72
  gr.Markdown(
73
  "# FiD-Light Output Explorer \n"+
74
- "This is a random data output explorer for the FiD-Light model on six KILT tasks (static dev set results).\n\n"+
 
75
  "*Every time you click on a result split we load up a new set of 10 random examples from this split for all the tasks.*")
 
 
 
 
 
 
 
76
  selected = gr.Radio(modes, value=modes[0], label="Result Split",interactive=True)
77
  text_fields = []
78
  init_data = render_examples(selected.value)
 
55
  t+="<< No provenance returned >>\n\n"
56
  return t
57
 
58
+ rendered_examples += "#### Query \n"+example["query"]+ "\n"+ \
59
+ "#### Target Text"+ "\n" + "\n\n".join(example["target_text"])+ "\n"
60
 
61
  if "target_provenance" in example:
62
+ rendered_examples+="#### Target Provenance"+ "\n"+ render_prov(example["target_provenance"])+ "\n"
63
 
64
+ rendered_examples += "#### Output Text"+ "\n"+ str(example["output_text"])+ "\n"+ \
65
+ "#### Output Provenance"+ "\n"+ render_prov(example["output_provenance"])+ "\n"+ \
66
  "\n----\n"
67
 
68
  all_rendered.append(rendered_examples)
 
71
  with gr.Blocks() as interface:
72
  gr.Markdown(
73
  "# FiD-Light Output Explorer \n"+
74
+ "This is a random data output explorer for the retrieval augmented generation model FiD-Light on six KILT tasks (showing static dev set results).\n\n"+
75
+ "*FiD-Light: Efficient and Effective Retrieval-Augmented Text Generation \nSebastian Hofstätter, Jiecao Chen, Karthik Raman, Hamed Zamani* \n[https://arxiv.org/abs/2209.14290](https://arxiv.org/abs/2209.14290) \n\n" +
76
  "*Every time you click on a result split we load up a new set of 10 random examples from this split for all the tasks.*")
77
+
78
+ #with gr.Accordion("Open for More!"):
79
+ # gr.Markdown("Look at me...")
80
+
81
+ #with gr.Accordion("Open for More!"):
82
+ # gr.Markdown("Look at me...")
83
+
84
  selected = gr.Radio(modes, value=modes[0], label="Result Split",interactive=True)
85
  text_fields = []
86
  init_data = render_examples(selected.value)
data/.DS_Store CHANGED
Binary files a/data/.DS_Store and b/data/.DS_Store differ