Alshargi commited on
Commit
e4a8341
·
verified ·
1 Parent(s): f7c5c6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -113,6 +113,7 @@ def features(sentence, index):
113
  'is_numeric': sentence[index].isdigit(),
114
  }
115
 
 
116
  import gradio as gr
117
 
118
  # Define the function for processing user input
@@ -142,7 +143,5 @@ def process_text(text_input):
142
  # Define the Gradio interface
143
  iface = gr.Interface(fn=process_text, inputs="text", outputs="text", title="Arabic Text Segmentation")
144
 
145
- # Launch the Gradio interface
146
- iface.launch()
147
-
148
-
 
113
  'is_numeric': sentence[index].isdigit(),
114
  }
115
 
116
+
117
  import gradio as gr
118
 
119
  # Define the function for processing user input
 
143
  # Define the Gradio interface
144
  iface = gr.Interface(fn=process_text, inputs="text", outputs="text", title="Arabic Text Segmentation")
145
 
146
+ # Add a button to run the model
147
+ iface.launch(server_port=8888, debug=True)