Kuautli commited on
Commit
7341cb3
·
verified ·
1 Parent(s): 30f5ce7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -33,6 +33,9 @@ def index():
33
  sentiment_daily_graph = None
34
  sentiment_count = None
35
 
 
 
 
36
  if request.method == "POST":
37
  url = request.form["url"]
38
  if url:
@@ -48,10 +51,10 @@ def index():
48
 
49
  comments_df = clustering.classify_sentiment_df(comments_df)
50
  comments_df.to_pickle(
51
- "/workspace/data/Comentarios-Youtube/comments_df.pkl"
52
  )
53
  comments_df = pd.read_pickle(
54
- "/workspace/data/Comentarios-Youtube/comments_df.pkl"
55
  )
56
  sentiment_count = comments_df["sentimiento"].value_counts().to_dict()
57
  sentiment_daily_graph = clustering.plot_sentiment_daily(comments_df)
 
33
  sentiment_daily_graph = None
34
  sentiment_count = None
35
 
36
+ current_directory = os.getcwd()
37
+ print("Directorio de trabajo actual:", current_directory)
38
+
39
  if request.method == "POST":
40
  url = request.form["url"]
41
  if url:
 
51
 
52
  comments_df = clustering.classify_sentiment_df(comments_df)
53
  comments_df.to_pickle(
54
+ "./data/Comentarios-Youtube/comments_df.pkl"
55
  )
56
  comments_df = pd.read_pickle(
57
+ "./data/Comentarios-Youtube/comments_df.pkl"
58
  )
59
  sentiment_count = comments_df["sentimiento"].value_counts().to_dict()
60
  sentiment_daily_graph = clustering.plot_sentiment_daily(comments_df)