Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import os
|
2 |
-
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
|
3 |
|
4 |
import gradio as gr
|
5 |
import numpy as np
|
@@ -94,8 +94,7 @@ with gr.Blocks(css=".gradio-container { max-width: 900px; margin: auto; padding:
|
|
94 |
placeholder="Type your review here..."
|
95 |
)
|
96 |
|
97 |
-
analyze_button = gr.Button("Analyze Sentiment", variant="primary")
|
98 |
-
analyze_button.style(full_width=False)
|
99 |
|
100 |
with gr.Column():
|
101 |
statistics_output = gr.Textbox(label="Statistics (Lowest, Highest, Average)", interactive=False)
|
|
|
1 |
import os
|
2 |
+
os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # Disable GPU and enforce CPU execution
|
3 |
|
4 |
import gradio as gr
|
5 |
import numpy as np
|
|
|
94 |
placeholder="Type your review here..."
|
95 |
)
|
96 |
|
97 |
+
analyze_button = gr.Button("Analyze Sentiment", variant="primary") # Blue button
|
|
|
98 |
|
99 |
with gr.Column():
|
100 |
statistics_output = gr.Textbox(label="Statistics (Lowest, Highest, Average)", interactive=False)
|