rachith commited on
Commit
69b9967
1 Parent(s): 9cca131

more description

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -8,9 +8,12 @@ from transformers import BartForSequenceClassification, BartTokenizer
8
  tokenizer_bart = BartTokenizer.from_pretrained('facebook/bart-large-mnli')
9
  model_bart_sq = BartForSequenceClassification.from_pretrained('facebook/bart-large-mnli')
10
 
11
- title="Stance Detection using Zero Shot"
 
 
 
 
12
 
13
- description="Welcome to the side where the grass is greener. This is a simple tool which was created with an aim to stance towards a given entity in a sentence. However, this is not the only use case of it!"
14
 
15
 
16
  def zs(premise,hypothesis):
@@ -31,7 +34,9 @@ def zs(premise,hypothesis):
31
 
32
  with gr.Blocks() as demo:
33
  gr.Markdown(f" # {title}")
34
- gr.Markdown(f" ## {description}")
 
 
35
  with gr.Row():
36
  premise = gr.Textbox(label="Premise",placeholder = "Roger Federer is an amazing tennis player.")
37
  hypothesis = gr.Textbox(label="Hypothesis", placeholder = "The stance to Roger Federer is positive.")
 
8
  tokenizer_bart = BartTokenizer.from_pretrained('facebook/bart-large-mnli')
9
  model_bart_sq = BartForSequenceClassification.from_pretrained('facebook/bart-large-mnli')
10
 
11
+ title = "Stance Detection using Zero Shot"
12
+
13
+ description1 = "Welcome to the side where the grass is greener."
14
+ description2 = "This is a simple tool which was created with an aim to stance towards a given entity in a sentence. However, this is not the only use case of it!"
15
+ description3 = "What did I do with it? Check out this [blog post](https://rachithaiyappa.github.io/science/Zero-Shot-for-Stance-Detection/) to see how it performs on some [SemEval](https://semeval.github.io/) tasks."
16
 
 
17
 
18
 
19
  def zs(premise,hypothesis):
 
34
 
35
  with gr.Blocks() as demo:
36
  gr.Markdown(f" # {title}")
37
+ gr.Markdown(f" ## {description1}")
38
+ gr.Markdown(f"{description2}")
39
+ gr.Markdown(f"{description3}")
40
  with gr.Row():
41
  premise = gr.Textbox(label="Premise",placeholder = "Roger Federer is an amazing tennis player.")
42
  hypothesis = gr.Textbox(label="Hypothesis", placeholder = "The stance to Roger Federer is positive.")