Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,9 +130,6 @@ def get_stats(history):
|
|
| 130 |
if not history:
|
| 131 |
return "**Статистика сесії:** немає даних"
|
| 132 |
|
| 133 |
-
|
| 134 |
-
print(history.keys())
|
| 135 |
-
|
| 136 |
total = len(history)
|
| 137 |
|
| 138 |
pos = sum(1 for h in history if h["Результат"] == "POSITIVE")
|
|
@@ -173,8 +170,7 @@ def save_to_wishlist(text, wishlist):
|
|
| 173 |
for i, item in enumerate(wishlist)
|
| 174 |
)
|
| 175 |
|
| 176 |
-
with gr.Blocks(title='NLP Analytics Dashboard'
|
| 177 |
-
) as demo:
|
| 178 |
|
| 179 |
gr.Markdown('# NLP Analytics Dashboard')
|
| 180 |
gr.Markdown('Аналізуй текст, накопичуй статистику, порівнюй результати.')
|
|
@@ -276,4 +272,4 @@ with gr.Blocks(title='NLP Analytics Dashboard', theme=gr.themes.Glass(),
|
|
| 276 |
outputs=sum_out
|
| 277 |
)
|
| 278 |
|
| 279 |
-
demo.launch(favicon_path='favicon.ico',
|
|
|
|
| 130 |
if not history:
|
| 131 |
return "**Статистика сесії:** немає даних"
|
| 132 |
|
|
|
|
|
|
|
|
|
|
| 133 |
total = len(history)
|
| 134 |
|
| 135 |
pos = sum(1 for h in history if h["Результат"] == "POSITIVE")
|
|
|
|
| 170 |
for i, item in enumerate(wishlist)
|
| 171 |
)
|
| 172 |
|
| 173 |
+
with gr.Blocks(title='NLP Analytics Dashboard') as demo:
|
|
|
|
| 174 |
|
| 175 |
gr.Markdown('# NLP Analytics Dashboard')
|
| 176 |
gr.Markdown('Аналізуй текст, накопичуй статистику, порівнюй результати.')
|
|
|
|
| 272 |
outputs=sum_out
|
| 273 |
)
|
| 274 |
|
| 275 |
+
demo.launch(favicon_path='favicon.ico', theme=gr.themes.Glass())
|