Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,9 +14,9 @@ loaded_model = pickle.load(open(save_file_name, 'rb'))
|
|
| 14 |
|
| 15 |
app=FastAPI()
|
| 16 |
|
| 17 |
-
username="ashwml"
|
| 18 |
-
repo_name="prometheus_model"
|
| 19 |
-
model=username+'/'+repo_name
|
| 20 |
test_data=pd.read_csv("test.csv")
|
| 21 |
|
| 22 |
|
|
@@ -82,7 +82,8 @@ iface = gr.Interface(fn=predict_death_event,
|
|
| 82 |
|
| 83 |
|
| 84 |
app = gradio.mount_gradio_app(app, iface, path="/")
|
| 85 |
-
|
|
|
|
| 86 |
|
| 87 |
|
| 88 |
if __name__ == "__main__":
|
|
|
|
| 14 |
|
| 15 |
app=FastAPI()
|
| 16 |
|
| 17 |
+
# username="ashwml"
|
| 18 |
+
# repo_name="prometheus_model"
|
| 19 |
+
# model=username+'/'+repo_name
|
| 20 |
test_data=pd.read_csv("test.csv")
|
| 21 |
|
| 22 |
|
|
|
|
| 82 |
|
| 83 |
|
| 84 |
app = gradio.mount_gradio_app(app, iface, path="/")
|
| 85 |
+
|
| 86 |
+
# iface.launch(server_name = "0.0.0.0", server_port = 8001)
|
| 87 |
|
| 88 |
|
| 89 |
if __name__ == "__main__":
|