nkigumnov commited on
Commit
262c90c
1 Parent(s): a2887cd

Launch on server

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -29,7 +29,7 @@ def predict(sentence: str):
29
  if __name__ == "__main__":
30
  print("App started")
31
 
32
- demo = gr.Interface(
33
  fn=predict,
34
  title="Try it yourself!",
35
  inputs=gr.Textbox(lines=3, placeholder="Sentence here..."),
@@ -42,6 +42,4 @@ if __name__ == "__main__":
42
  gr.Number(0.0, label="Price"),
43
  gr.Number(0.0, label="Safety"),
44
  ],
45
- )
46
-
47
- demo.launch(server_name="0.0.0.0", server_port=8080)
 
29
  if __name__ == "__main__":
30
  print("App started")
31
 
32
+ gr.Interface(
33
  fn=predict,
34
  title="Try it yourself!",
35
  inputs=gr.Textbox(lines=3, placeholder="Sentence here..."),
 
42
  gr.Number(0.0, label="Price"),
43
  gr.Number(0.0, label="Safety"),
44
  ],
45
+ ).launch()