ckmoraiz commited on
Commit
65ed2db
·
1 Parent(s): 7a6ffa2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -21,22 +21,21 @@ def infer(cylinder, bore, stroke, cooling):
21
 
22
 
23
  moto1_pred = np.absolute(model.predict(X))
 
24
  return f"The power output of the engine will be around {moto1_pred}hp"
25
 
26
  with gr.Blocks() as demo:
27
  bore = gr.Number(label="Bore size in mm:")
28
  stroke = gr.Number(label="Stroke size in mm:")
29
 
30
- gr.Markdown(
31
- """
32
  Choose the number of engine configuration:
33
  [0]Diesel [1]Four cylinder boxer [2]In-line four [3]In-line six [4]In-line three\n\
34
  [5]Single cylinder [6]Six cylinder boxer [7]Square four cylinder [8]Twin [9]Two cylinder boxer\n\
35
  [10]V2 [11]V3 [12]V4 [13]V6 [14]V8
36
  """
37
- , visible=True)
38
 
39
- cylinder = gr.Number(label="Number of engine configuration")
40
 
41
  gr.Markdown(
42
  """
 
21
 
22
 
23
  moto1_pred = np.absolute(model.predict(X))
24
+
25
  return f"The power output of the engine will be around {moto1_pred}hp"
26
 
27
  with gr.Blocks() as demo:
28
  bore = gr.Number(label="Bore size in mm:")
29
  stroke = gr.Number(label="Stroke size in mm:")
30
 
31
+ engine_label = """
 
32
  Choose the number of engine configuration:
33
  [0]Diesel [1]Four cylinder boxer [2]In-line four [3]In-line six [4]In-line three\n\
34
  [5]Single cylinder [6]Six cylinder boxer [7]Square four cylinder [8]Twin [9]Two cylinder boxer\n\
35
  [10]V2 [11]V3 [12]V4 [13]V6 [14]V8
36
  """
 
37
 
38
+ cylinder = gr.Number(label=engine_label)
39
 
40
  gr.Markdown(
41
  """