Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,10 +54,6 @@ def test_model(text, vectorizer):
|
|
| 54 |
# Return the prediction
|
| 55 |
return prediction
|
| 56 |
|
| 57 |
-
# Fit the vectorizer on your training data to build the vocabulary
|
| 58 |
-
train_data = [...] # Replace [...] with your actual training data
|
| 59 |
-
vectorizer.fit(train_data)
|
| 60 |
-
|
| 61 |
# Create the Gradio interface
|
| 62 |
iface = gr.Interface(fn=test_model, inputs=["text", vectorizer], outputs="text", title="Text Classification")
|
| 63 |
iface.launch()
|
|
|
|
| 54 |
# Return the prediction
|
| 55 |
return prediction
|
| 56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
# Create the Gradio interface
|
| 58 |
iface = gr.Interface(fn=test_model, inputs=["text", vectorizer], outputs="text", title="Text Classification")
|
| 59 |
iface.launch()
|