Yaron Koresh commited on
Commit
ccc944a
·
verified ·
1 Parent(s): 2fcbac4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ else:
101
  power_device = "CPU"
102
 
103
  def limiter(txt):
104
- return (re.sub(f'[{string.punctuation}]', '', re.sub('[\s+]', ' ', txt)).lower().strip())[:38]
105
 
106
  with gr.Blocks(theme=gr.themes.Soft(),css=css) as demo:
107
  with gr.Column(elem_id="col-container"):
 
101
  power_device = "CPU"
102
 
103
  def limiter(txt):
104
+ return gr.Textbox.update(value=(re.sub(f'[{string.punctuation}]', '', re.sub('[\s+]', ' ', txt)).lower())[:38])
105
 
106
  with gr.Blocks(theme=gr.themes.Soft(),css=css) as demo:
107
  with gr.Column(elem_id="col-container"):