ArtificialCoincidence commited on
Commit
4400787
·
1 Parent(s): 18402a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ MODEL_VERSION = 6
6
  LOCAL = True
7
 
8
  if LOCAL == False:
9
- hopsworks_image = modal.Image.debian_slim(python_version='3.9').pip_install(["gradio==3.16", "requests", "hopsworks", "joblib", "pandas", "scikit-learn==1.1.1"])
10
  stub = modal.Stub("wine_prediction_user_interface")
11
  @stub.function(image=hopsworks_image, secret=modal.Secret.from_name("HOPSWORKS_API_KEY"))
12
  def f():
@@ -66,7 +66,7 @@ def g():
66
  ],
67
  outputs=gr.Number(label="predicted quality"))
68
 
69
- demo.launch(debug=True, share=True)
70
 
71
  if __name__ == "__main__":
72
  if LOCAL == True :
 
6
  LOCAL = True
7
 
8
  if LOCAL == False:
9
+ hopsworks_image = modal.Image.debian_slim(python_version='3.9').pip_install(["requests", "hopsworks", "joblib", "pandas", "scikit-learn==1.1.1"])
10
  stub = modal.Stub("wine_prediction_user_interface")
11
  @stub.function(image=hopsworks_image, secret=modal.Secret.from_name("HOPSWORKS_API_KEY"))
12
  def f():
 
66
  ],
67
  outputs=gr.Number(label="predicted quality"))
68
 
69
+ demo.launch(debug=True)
70
 
71
  if __name__ == "__main__":
72
  if LOCAL == True :