Spaces:
Sleeping
Sleeping
Commit History
-
Create app.py
Verified signature0996202 -
Delete app.pyβ
Verified signatureimport gradio as gr import pandas as pd from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer import requests # Load results df = pd.read_csv('final_results.csv') analyzer = SentimentIntensityAnalyzer() # Your n8n webhook URL N8N_WEBHOOK_URL = "https://andreeaalbulescu.app.n8n.cloud/webhook-test/book-price-optimizer" def analyze_book(book_title): match = df[df['title'].str.contains(book_title, case=False, na=False)] if len(match) > 0: row = match.iloc[0] sentiment = row['avg_sentiment'] recommendation = row['recommendation'] current_price = row['price'] recommended_price = row['recommended_price'] rating = row['rating'] if sentiment > 0.2: sentiment_label = "Positive π" elif sentiment < -0.1: sentiment_label = "Negative π" else: sentiment_label = "Neutral π" result = f""" π BOOK ANALYSIS RESULTS ========================β¦6cca900 -
Upload final_results.csv
Verified signature944fda1 -
Create requirements.txt
Verified signaturee7e53ea -
Create requirements.txt
Verified signature86243fe -
Create app.py
Verified signaturec65c9f0 -
initial commit
Verified signature34c9cc0