Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -612,6 +612,7 @@ def analyze_sentiment(url):
|
|
| 612 |
except Exception as e:
|
| 613 |
return f"Error: {str(e)}", "N/A"
|
| 614 |
|
|
|
|
| 615 |
# Gradio Interface
|
| 616 |
with gr.Blocks(theme=gr.themes.Soft()) as app:
|
| 617 |
# Login Page
|
|
@@ -656,6 +657,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
| 656 |
summary = gr.Textbox(label="π Summary", lines=8)
|
| 657 |
sentiment = gr.Textbox(label="π Content Sentiment")
|
| 658 |
|
|
|
|
| 659 |
def login_check(user, pwd):
|
| 660 |
if USER_CREDENTIALS.get(user) == pwd:
|
| 661 |
return {
|
|
|
|
| 612 |
except Exception as e:
|
| 613 |
return f"Error: {str(e)}", "N/A"
|
| 614 |
|
| 615 |
+
# Gradio Interface
|
| 616 |
# Gradio Interface
|
| 617 |
with gr.Blocks(theme=gr.themes.Soft()) as app:
|
| 618 |
# Login Page
|
|
|
|
| 657 |
summary = gr.Textbox(label="π Summary", lines=8)
|
| 658 |
sentiment = gr.Textbox(label="π Content Sentiment")
|
| 659 |
|
| 660 |
+
|
| 661 |
def login_check(user, pwd):
|
| 662 |
if USER_CREDENTIALS.get(user) == pwd:
|
| 663 |
return {
|