AlirezaF138 commited on
Commit
0b65d75
·
verified ·
1 Parent(s): 9eda247

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,13 +23,13 @@ def process_text(text, operations):
23
  result['Chunks'] = str(chunks)
24
  return result
25
 
26
- # Define Gradio interface
27
  operations = ['normalize', 'tokenize', 'lemmatize', 'chunk']
28
  iface = gr.Interface(
29
  fn=process_text,
30
  inputs=[
31
- gr.inputs.Textbox(lines=10, label="Input Text"),
32
- gr.inputs.CheckboxGroup(operations, label="Operations")
33
  ],
34
  outputs="json",
35
  title="Persian Text Processor with Hazm",
 
23
  result['Chunks'] = str(chunks)
24
  return result
25
 
26
+ # Define Gradio interface with updated syntax
27
  operations = ['normalize', 'tokenize', 'lemmatize', 'chunk']
28
  iface = gr.Interface(
29
  fn=process_text,
30
  inputs=[
31
+ gr.Textbox(lines=10, label="Input Text"),
32
+ gr.CheckboxGroup(operations, label="Operations")
33
  ],
34
  outputs="json",
35
  title="Persian Text Processor with Hazm",