eliasangels commited on
Commit
e4abf2e
·
verified ·
1 Parent(s): 35b175a

removing floating commas

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -34,7 +34,7 @@ def preprocessText(text):
34
  return cleanedChunks, sectionLabels
35
 
36
  def createEmbeddings(textChunks):
37
- chunkEmbeddings = model.encode(cleanedChunks, convert_to_tensor = True)
38
  return chunkEmbeddings
39
 
40
  def getTopChunks(query, chunkEmbeddings, textChunks, sectionLabels):
@@ -190,8 +190,8 @@ with gr.Blocks(css=custom_css) as demo:
190
  with gr.Tab("Goal Tracker"):
191
  gr.Markdown("## Savings Goal Tracker")
192
  gr.Markdown("Saving up to buy something special? Want to figure out how long it'll take to reach that goal? Enter your goal amount, current savings, and target date to see the suggested timeline!")
193
- goalInput = gr.Number(label = "Savings Goal ($)", minimum = 0),
194
- savingsInput = gr.Number(label = "Current Savings ($)", minimum = 0),
195
  targetInput = gr.Textbox(label = "Target Date (YYYY-MM-DD)", placeholder = "2026-12-31")
196
  goalOutput = gr.Markdown(label = "Your Savings Plan")
197
  goalButton = gr.Button("Calculate")
 
34
  return cleanedChunks, sectionLabels
35
 
36
  def createEmbeddings(textChunks):
37
+ chunkEmbeddings = model.encode(textChunks, convert_to_tensor = True)
38
  return chunkEmbeddings
39
 
40
  def getTopChunks(query, chunkEmbeddings, textChunks, sectionLabels):
 
190
  with gr.Tab("Goal Tracker"):
191
  gr.Markdown("## Savings Goal Tracker")
192
  gr.Markdown("Saving up to buy something special? Want to figure out how long it'll take to reach that goal? Enter your goal amount, current savings, and target date to see the suggested timeline!")
193
+ goalInput = gr.Number(label = "Savings Goal ($)", minimum = 0)
194
+ savingsInput = gr.Number(label = "Current Savings ($)", minimum = 0)
195
  targetInput = gr.Textbox(label = "Target Date (YYYY-MM-DD)", placeholder = "2026-12-31")
196
  goalOutput = gr.Markdown(label = "Your Savings Plan")
197
  goalButton = gr.Button("Calculate")