kevinhug commited on
Commit
88224ed
·
1 Parent(s): 6fa2bd1

fix example

Browse files
Files changed (1) hide show
  1. app.py +12 -3
app.py CHANGED
@@ -151,7 +151,7 @@ https://www.kaggle.com/datasets/trainingdatapro/20000-customers-reviews-on-banks
151
  """)
152
 
153
  with gr.Tab("Semantic Similarity Document Search (SSDS)"):
154
- in_similar = gr.Textbox(placeholder="having credit card problem",
155
  label="Issue",
156
  info="issue you want to explore about"
157
  )
@@ -226,12 +226,21 @@ With no need for jargon, SSDS delivers tangible value to our fintech operations.
226
  """)
227
 
228
  with gr.Tab("Generative AI Summarization"):
229
- in_sum = gr.Textbox(placeholder="Customer service was terrible. Called the number for accounts and forced to listen to advertisements from their partners with no escape. When it was finally over it just went to a loop with a number to call for more promotional offers. Called a different number and got transferred from a human back to their answering service-- which hung up on me.", lines=7,
230
  label="Long Text",
231
  info="Summarization"
232
  )
233
  out_sum = gr.Textbox(label="Summarized Verbatim")
234
 
 
 
 
 
 
 
 
 
 
235
  btn_sum = gr.Button("Find Similar Verbatim")
236
  btn_sum.click(fn=summarize, inputs=in_sum, outputs=out_sum)
237
 
@@ -363,7 +372,7 @@ ML Observability
363
  gr.DataFrame(df)
364
 
365
  with gr.Tab("Fine Tune LLM"):
366
- in_like = gr.Textbox(placeholder="having credit card problem" , label="Issue",
367
  info="issue you want to explore about")
368
  out_like = gr.Textbox(placeholder="like score in range [2 to 248] from fine tuning data",
369
  label="like score",
 
151
  """)
152
 
153
  with gr.Tab("Semantic Similarity Document Search (SSDS)"):
154
+ in_similar = gr.Textbox(placeholder="Select Example Below",
155
  label="Issue",
156
  info="issue you want to explore about"
157
  )
 
226
  """)
227
 
228
  with gr.Tab("Generative AI Summarization"):
229
+ in_sum = gr.Textbox(placeholder="Select Example Below", lines=7,
230
  label="Long Text",
231
  info="Summarization"
232
  )
233
  out_sum = gr.Textbox(label="Summarized Verbatim")
234
 
235
+ gr.Examples(
236
+ [
237
+ ["Low APR and great customer service. I would highly recommend if you’re looking for a great credit card company and looking to rebuild your credit. I have had my credit limit increased annually and the annual fee is very low.",
238
+ "Customer service was terrible. Called the number for accounts and forced to listen to advertisements from their partners with no escape. When it was finally over it just went to a loop with a number to call for more promotional offers. Called a different number and got transferred from a human back to their answering service-- which hung up on me."]
239
+ ],
240
+ [in_sum]
241
+ )
242
+
243
+
244
  btn_sum = gr.Button("Find Similar Verbatim")
245
  btn_sum.click(fn=summarize, inputs=in_sum, outputs=out_sum)
246
 
 
372
  gr.DataFrame(df)
373
 
374
  with gr.Tab("Fine Tune LLM"):
375
+ in_like = gr.Textbox(placeholder="Select Example Below" , label="Issue",
376
  info="issue you want to explore about")
377
  out_like = gr.Textbox(placeholder="like score in range [2 to 248] from fine tuning data",
378
  label="like score",