cyberandy commited on
Commit
2ea7c21
·
verified ·
1 Parent(s): 5fc52bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -10
app.py CHANGED
@@ -228,29 +228,57 @@ with gr.Blocks(css=css) as demo:
228
  result,
229
  gr.update(visible=False),
230
  gr.update(interactive=True),
231
- f"You have {remaining_tests} test(s) remaining today.",
232
  )
233
  else:
234
  redirect_text = """
235
- You've reached the limit of 4 free tests for today. To continue using our product description generation tool,
236
- please book a demo of our solution for content generation with our experts.
237
-
238
- [Book a Demo](https://wordlift.io/book-a-demo/)
239
-
240
- The test counter will reset tomorrow, allowing you to try 4 more tests.
 
 
 
 
 
 
 
 
 
 
241
  """
242
  return (
243
  result,
244
  gr.update(visible=True, value=redirect_text),
245
  gr.update(interactive=False),
246
- "You've used all your free tests for today.",
247
  )
248
  else:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  return (
250
  "",
251
- gr.update(visible=True),
252
  gr.update(interactive=False),
253
- "You've used all your free tests for today.",
254
  )
255
 
256
  submit_btn.click(
 
228
  result,
229
  gr.update(visible=False),
230
  gr.update(interactive=True),
231
+ f"You have {remaining_tests} free test(s) remaining today.",
232
  )
233
  else:
234
  redirect_text = """
235
+ Thank you for trying our product description generation tool!
236
+
237
+ You've used all 4 of your free tests for today. We hope you found them helpful and insightful.
238
+
239
+ To unlock unlimited access and discover how our AI-powered solution can revolutionize your content creation process:
240
+
241
+ [Book a Personalized Demo with Our Experts](https://wordlift.io/book-a-demo/)
242
+
243
+ During the demo, you'll get:
244
+ • A tailored walkthrough of our full suite of features
245
+ • Insights on how to optimize your specific content workflow
246
+ • Answers to any questions you may have about our solution
247
+
248
+ We're excited to show you how we can help scale your content creation!
249
+
250
+ (Your free tests will reset tomorrow, allowing you to try 4 more if you need additional time to decide.)
251
  """
252
  return (
253
  result,
254
  gr.update(visible=True, value=redirect_text),
255
  gr.update(interactive=False),
256
+ "You've used all your free tests for today. We invite you to book a demo for full access!",
257
  )
258
  else:
259
+ redirect_text = """
260
+ Thank you for your interest in our product description generation tool!
261
+
262
+ You've already used your 4 free tests for today. We hope they've given you a glimpse of how our AI can enhance your content creation.
263
+
264
+ Ready to explore the full potential of our solution?
265
+
266
+ [Book a Personalized Demo with Our Experts](https://wordlift.io/book-a-demo/)
267
+
268
+ In this demo, you'll discover:
269
+ • How our AI can be customized for your specific needs
270
+ • Advanced features for scaling your content production
271
+ • ROI projections based on your current content workflow
272
+
273
+ Let's discuss how we can help you achieve your content goals!
274
+
275
+ (Remember, your free tests will reset tomorrow if you need more time to evaluate.)
276
+ """
277
  return (
278
  "",
279
+ gr.update(visible=True, value=redirect_text),
280
  gr.update(interactive=False),
281
+ "All free tests used. We invite you to book a demo for full access!",
282
  )
283
 
284
  submit_btn.click(