Yaron Koresh commited on
Commit
1f4bd3f
·
verified ·
1 Parent(s): b129e8e

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 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"):
 
101
  power_device = "CPU"
102
 
103
  def limiter(txt):
104
+ return txt[:38]
105
 
106
  with gr.Blocks(theme=gr.themes.Soft(),css=css) as demo:
107
  with gr.Column(elem_id="col-container"):