Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
model_path = "models/hassaanik/Language_Identifier"
|
4 |
-
model = gr.
|
5 |
iface = gr.Interface(
|
6 |
fn=model.predict,
|
7 |
inputs="text",
|
8 |
outputs="text"
|
9 |
)
|
10 |
iface.launch()
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
model_path = "models/hassaanik/Language_Identifier"
|
4 |
+
model = gr.load_model(model_path)
|
5 |
iface = gr.Interface(
|
6 |
fn=model.predict,
|
7 |
inputs="text",
|
8 |
outputs="text"
|
9 |
)
|
10 |
iface.launch()
|
11 |
+
|