paragon-analytics commited on
Commit
bda3b77
1 Parent(s): d2c2daa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -102,7 +102,7 @@ def main(prob1):
102
 
103
  title = "Welcome to **ResText** 🪐"
104
  description1 = """
105
- Just add your text and hit Create & Analyze ✨
106
  """
107
 
108
  with gr.Blocks(title=title) as demo:
@@ -127,9 +127,7 @@ with gr.Blocks(title=title) as demo:
127
  [label,impplot,NER], api_name="ResText"
128
  )
129
 
130
-
131
-
132
  gr.Markdown("### Click on any of the examples below to see how it works:")
133
- gr.Examples([["Please stay at home and avoid unnecessary trips."],["Please stay at home and avoid unnecessary trips. We will survive this."],["We will survive this."]], [prob1], [label,impplot,NER], main, cache_examples=True)
134
 
135
  demo.launch()
 
102
 
103
  title = "Welcome to **ResText** 🪐"
104
  description1 = """
105
+ This app takes text (up to a few sentences) and predicts whether the text contains resilience messaging. Resilience messaging is a text message that is about being able to a) "adapt to change” and b) “bounce back after illness or hardship". The predictive model is a fine-tuned RoBERTa NLP model. Just add your text and hit Create & Analyze. Or, simply click on one of the examples to see how it works.
106
  """
107
 
108
  with gr.Blocks(title=title) as demo:
 
127
  [label,impplot,NER], api_name="ResText"
128
  )
129
 
 
 
130
  gr.Markdown("### Click on any of the examples below to see how it works:")
131
+ gr.Examples([["Please stay at home and avoid unnecessary trips."],["Please stay at home and avoid unnecessary trips. We will survive this."],["We will survive this."],["Watch today’s news briefing with the latest updates on COVID-19 in Connecticut."],["So let's keep doing what we know works. Let's stay strong, and let's beat this virus. I know we can, and I know we can come out stronger on the other side."]], [prob1], [label,impplot,NER], main, cache_examples=True)
132
 
133
  demo.launch()