Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def predict_tabular(height, width, depth, page_count):
|
|
| 32 |
df = pd.DataFrame([row])
|
| 33 |
pred = int(predictor.predict(df)[0])
|
| 34 |
|
| 35 |
-
return {
|
| 36 |
|
| 37 |
with gr.Blocks(title="Book Genre Predictor") as demo:
|
| 38 |
gr.Markdown("## Predict the Genre of a Book (Numeric Labels)")
|
|
@@ -64,5 +64,3 @@ with gr.Blocks(title="Book Genre Predictor") as demo:
|
|
| 64 |
)
|
| 65 |
|
| 66 |
|
| 67 |
-
demo.launch(share=True)
|
| 68 |
-
|
|
|
|
| 32 |
df = pd.DataFrame([row])
|
| 33 |
pred = int(predictor.predict(df)[0])
|
| 34 |
|
| 35 |
+
return {"Predicted Genre": pred}
|
| 36 |
|
| 37 |
with gr.Blocks(title="Book Genre Predictor") as demo:
|
| 38 |
gr.Markdown("## Predict the Genre of a Book (Numeric Labels)")
|
|
|
|
| 64 |
)
|
| 65 |
|
| 66 |
|
|
|
|
|
|