Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +8 -4
src/streamlit_app.py
CHANGED
|
@@ -447,6 +447,13 @@ if st.button("Анализировать тональность") and text.strip
|
|
| 447 |
|
| 448 |
'''
|
| 449 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 450 |
import streamlit as st
|
| 451 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
|
| 452 |
import torch
|
|
@@ -456,13 +463,10 @@ import plotly.express as px
|
|
| 456 |
import plotly.graph_objects as go
|
| 457 |
from plotly.subplots import make_subplots
|
| 458 |
import numpy as np
|
| 459 |
-
from datetime import datetime, timedelta
|
| 460 |
-
import re
|
| 461 |
-
import yfinance as yf
|
| 462 |
from textblob import TextBlob
|
| 463 |
import requests
|
| 464 |
from bs4 import BeautifulSoup
|
| 465 |
-
|
| 466 |
|
| 467 |
# Page configuration
|
| 468 |
st.set_page_config(
|
|
|
|
| 447 |
|
| 448 |
'''
|
| 449 |
|
| 450 |
+
|
| 451 |
+
import time
|
| 452 |
+
import os
|
| 453 |
+
from datetime import datetime, timedelta
|
| 454 |
+
import re
|
| 455 |
+
|
| 456 |
+
import yfinance as yf
|
| 457 |
import streamlit as st
|
| 458 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
|
| 459 |
import torch
|
|
|
|
| 463 |
import plotly.graph_objects as go
|
| 464 |
from plotly.subplots import make_subplots
|
| 465 |
import numpy as np
|
|
|
|
|
|
|
|
|
|
| 466 |
from textblob import TextBlob
|
| 467 |
import requests
|
| 468 |
from bs4 import BeautifulSoup
|
| 469 |
+
|
| 470 |
|
| 471 |
# Page configuration
|
| 472 |
st.set_page_config(
|