tlkh commited on
Commit
541525b
1 Parent(s): 8f83cc7

Add more explanation

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +2 -4
  2. app.py +2 -4
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -27,15 +27,13 @@ def infer(s1, s2):
27
  return data
28
 
29
  title = "Paraphrase Classification and Explanation"
30
- desc = "Classify and explain the semantic relationship between the two sentences"
31
- long_desc = "This is a Flan-T5-Large model fine-tuned to perform paraphrase classification and explanation. It takes in two sentences as inputs. Feel free to modify the example inputs or enter in your own sentences."
32
 
33
  s1 = gr.Textbox(value="On Monday, Tom went to the market.",label="Sentence 1")
34
- s2 = gr.Textbox(value="Tom went to the market.",label="Sentence 2")
35
 
36
  demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
37
  title=title,
38
- description=desc,
39
  article=long_desc,
40
  )
41
 
 
27
  return data
28
 
29
  title = "Paraphrase Classification and Explanation"
30
+ long_desc = "This is a Flan-T5-Large model fine-tuned to perform paraphrase classification and explanation. The model takes in two sentences as inputs, and outputs a classification label and explanation. The model is trained on our Semantic Paraphrase Types dataset. Feel free to modify the example inputs or enter in your own sentences. Due to existing limitations, the explanation generated may not be entirely accurate. We hope that in future work, more powerful models can be trained and produce more accurate explanations."
 
31
 
32
  s1 = gr.Textbox(value="On Monday, Tom went to the market.",label="Sentence 1")
33
+ s2 = gr.Textbox(value="Tom went to the market and bought a pig.",label="Sentence 2")
34
 
35
  demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
36
  title=title,
 
37
  article=long_desc,
38
  )
39
 
app.py CHANGED
@@ -27,15 +27,13 @@ def infer(s1, s2):
27
  return data
28
 
29
  title = "Paraphrase Classification and Explanation"
30
- desc = "Classify and explain the semantic relationship between the two sentences"
31
- long_desc = "This is a Flan-T5-Large model fine-tuned to perform paraphrase classification and explanation. It takes in two sentences as inputs. Feel free to modify the example inputs or enter in your own sentences."
32
 
33
  s1 = gr.Textbox(value="On Monday, Tom went to the market.",label="Sentence 1")
34
- s2 = gr.Textbox(value="Tom went to the market.",label="Sentence 2")
35
 
36
  demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
37
  title=title,
38
- description=desc,
39
  article=long_desc,
40
  )
41
 
 
27
  return data
28
 
29
  title = "Paraphrase Classification and Explanation"
30
+ long_desc = "This is a Flan-T5-Large model fine-tuned to perform paraphrase classification and explanation. The model takes in two sentences as inputs, and outputs a classification label and explanation. The model is trained on our Semantic Paraphrase Types dataset. Feel free to modify the example inputs or enter in your own sentences. Due to existing limitations, the explanation generated may not be entirely accurate. We hope that in future work, more powerful models can be trained and produce more accurate explanations."
 
31
 
32
  s1 = gr.Textbox(value="On Monday, Tom went to the market.",label="Sentence 1")
33
+ s2 = gr.Textbox(value="Tom went to the market and bought a pig.",label="Sentence 2")
34
 
35
  demo = gr.Interface(fn=infer, inputs=[s1,s2], outputs="text",
36
  title=title,
 
37
  article=long_desc,
38
  )
39