Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- app.py +6 -4
- requirements.txt +3 -1
app.py
CHANGED
|
@@ -81,9 +81,11 @@ with gr.Blocks() as interface:
|
|
| 81 |
placeholder="Digite aqui a avaliação do produto...",
|
| 82 |
lines=4
|
| 83 |
)
|
| 84 |
-
with gr.Row():
|
| 85 |
-
|
| 86 |
-
|
|
|
|
|
|
|
| 87 |
|
| 88 |
with gr.Column(scale=1):
|
| 89 |
output_text = gr.Textbox(
|
|
@@ -138,4 +140,4 @@ interface.css = css
|
|
| 138 |
|
| 139 |
# Launch the Gradio app
|
| 140 |
if __name__ == "__main__":
|
| 141 |
-
interface.launch(
|
|
|
|
| 81 |
placeholder="Digite aqui a avaliação do produto...",
|
| 82 |
lines=4
|
| 83 |
)
|
| 84 |
+
with gr.Row(equal_height=True):
|
| 85 |
+
with gr.Column(scale=1, min_width=100):
|
| 86 |
+
clear_btn = gr.Button("Limpar", variant="secondary", size="lg")
|
| 87 |
+
with gr.Column(scale=2, min_width=200):
|
| 88 |
+
analyze_btn = gr.Button("Analisar Sentimento", variant="primary", size="lg")
|
| 89 |
|
| 90 |
with gr.Column(scale=1):
|
| 91 |
output_text = gr.Textbox(
|
|
|
|
| 140 |
|
| 141 |
# Launch the Gradio app
|
| 142 |
if __name__ == "__main__":
|
| 143 |
+
interface.launch()
|
requirements.txt
CHANGED
|
@@ -1,3 +1,5 @@
|
|
| 1 |
gradio==5.25.0
|
| 2 |
-
tensorflow
|
| 3 |
transformers
|
|
|
|
|
|
|
|
|
| 1 |
gradio==5.25.0
|
| 2 |
+
tensorflow<2.16.0
|
| 3 |
transformers
|
| 4 |
+
tf-keras
|
| 5 |
+
keras<3.0.0
|