Spaces:
Build error
Build error
Launch on server
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def predict(sentence: str):
|
|
29 |
if __name__ == "__main__":
|
30 |
print("App started")
|
31 |
|
32 |
-
|
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()
|
|
|
|