Spaces:
Sleeping
Sleeping
Preetham04
commited on
Commit
•
b7bc321
1
Parent(s):
250452d
Update app.py
Browse files
app.py
CHANGED
@@ -15,19 +15,12 @@ def predict(input_text):
|
|
15 |
})
|
16 |
return result
|
17 |
|
18 |
-
description = """
|
19 |
-
The Bot was trained to answer questions based on Clothing. Ask anything!
|
20 |
-
"""
|
21 |
-
|
22 |
gradio_app = gr.Interface(
|
23 |
predict,
|
24 |
inputs="textbox",
|
25 |
outputs="text",
|
26 |
title="Sentiment- good or bad?",
|
27 |
-
description=description,
|
28 |
-
examples=[["Loved it!!"], ["Bad quality"]],
|
29 |
)
|
30 |
|
31 |
if __name__ == "__main__":
|
32 |
gradio_app.launch(share=True)
|
33 |
-
|
|
|
15 |
})
|
16 |
return result
|
17 |
|
|
|
|
|
|
|
|
|
18 |
gradio_app = gr.Interface(
|
19 |
predict,
|
20 |
inputs="textbox",
|
21 |
outputs="text",
|
22 |
title="Sentiment- good or bad?",
|
|
|
|
|
23 |
)
|
24 |
|
25 |
if __name__ == "__main__":
|
26 |
gradio_app.launch(share=True)
|
|