Update app.py
Browse files
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 |
-
#
|
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)
|
|
|
|