Julien Simon commited on
Commit
7eeb23e
·
1 Parent(s): 54c2f4d
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -42,10 +42,13 @@ answer_text_tapas = gr.Text(label="TAPAS answer")
42
  description = (
43
  "This Space lets you ask questions on CSV documents with Microsoft "
44
  "[TAPEX-Large](https://huggingface.co/microsoft/tapex-large-finetuned-wtq) "
45
- "and Google [TAPAS-Large](https://huggingface.co/google/tapas-large-finetuned-wtq). "
 
46
  "Both have been fine-tuned on the "
47
- "[WikiTableQuestions](https://huggingface.co/datasets/wikitablequestions) dataset. \n\n"
48
- "A sample file with football statistics is available in the repository: \n\n"
 
 
49
  "* Which team has the most wins? Answer: Manchester City FC\n"
50
  "* Which team has the most wins: Chelsea, Liverpool or Everton? Answer: "
51
  "Liverpool\n"
@@ -53,14 +56,12 @@ description = (
53
  "Fulham FC, Brighton & Hove Albion FC, Huddersfield Town FC\n"
54
  "* What is the average number of wins? Answer: 16 (rounded)\n\n"
55
  "You can also upload your own CSV file. Please note that maximum sequence "
56
- "length for both models is 1024 tokens, so you may need to limit the number "
57
- "of rows in your CSV file. Chunking is not implemented yet."
58
  )
59
 
60
  iface = gr.Interface(
61
- theme="huggingface",
62
  description=description,
63
- layout="vertical",
64
  fn=process,
65
  inputs=[query_text, input_file, rows_slider],
66
  outputs=[answer_text_tapex, answer_text_tapas],
 
42
  description = (
43
  "This Space lets you ask questions on CSV documents with Microsoft "
44
  "[TAPEX-Large](https://huggingface.co/microsoft/tapex-large-finetuned-wtq) "
45
+ "and Google "
46
+ "[TAPAS-Large](https://huggingface.co/google/tapas-large-finetuned-wtq). "
47
  "Both have been fine-tuned on the "
48
+ "[WikiTableQuestions](https://huggingface.co/datasets/wikitablequestions) "
49
+ "dataset. \n\n"
50
+ "A sample file with football statistics is available in the "
51
+ "repository: \n\n"
52
  "* Which team has the most wins? Answer: Manchester City FC\n"
53
  "* Which team has the most wins: Chelsea, Liverpool or Everton? Answer: "
54
  "Liverpool\n"
 
56
  "Fulham FC, Brighton & Hove Albion FC, Huddersfield Town FC\n"
57
  "* What is the average number of wins? Answer: 16 (rounded)\n\n"
58
  "You can also upload your own CSV file. Please note that maximum sequence "
59
+ "length for both models is 1024 tokens, so you may need to limit the "
60
+ "number of rows in your CSV file. Chunking is not implemented yet."
61
  )
62
 
63
  iface = gr.Interface(
 
64
  description=description,
 
65
  fn=process,
66
  inputs=[query_text, input_file, rows_slider],
67
  outputs=[answer_text_tapex, answer_text_tapas],