Update app.py
Browse files
app.py
CHANGED
|
@@ -62,12 +62,12 @@ iface = gr.Interface(
|
|
| 62 |
title="Sentiment Analysis",
|
| 63 |
description="Enter text to analyze sentiment. Powered by Hugging Face Transformers.",
|
| 64 |
inputs=[
|
| 65 |
-
gr.
|
| 66 |
-
gr.
|
| 67 |
],
|
| 68 |
outputs="text",
|
| 69 |
examples=examples
|
| 70 |
)
|
| 71 |
|
| 72 |
if __name__ == "__main__":
|
| 73 |
-
iface.launch()
|
|
|
|
| 62 |
title="Sentiment Analysis",
|
| 63 |
description="Enter text to analyze sentiment. Powered by Hugging Face Transformers.",
|
| 64 |
inputs=[
|
| 65 |
+
gr.Textbox(lines=2, placeholder="Enter text here..."),
|
| 66 |
+
gr.Radio(choices=["Model 1", "Model 2"], label="Select Model")
|
| 67 |
],
|
| 68 |
outputs="text",
|
| 69 |
examples=examples
|
| 70 |
)
|
| 71 |
|
| 72 |
if __name__ == "__main__":
|
| 73 |
+
iface.launch()
|