bareethul commited on
Commit
b8cfe69
·
verified ·
1 Parent(s): 440561f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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 {f"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,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