Validation update: empty input
Browse files
app.py
CHANGED
|
@@ -32,6 +32,10 @@ SEARCH_MODEL = os.getenv("SEARCH_MODEL")
|
|
| 32 |
|
| 33 |
# Function to process and verify news
|
| 34 |
def evaluate_news(news_input):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
yield "**Processing... Please wait.** ⏳"
|
| 36 |
|
| 37 |
# Handle URL input
|
|
|
|
| 32 |
|
| 33 |
# Function to process and verify news
|
| 34 |
def evaluate_news(news_input):
|
| 35 |
+
if not news_input.strip():
|
| 36 |
+
yield "**⚠️ Warning:** Input cannot be empty. Please enter news text or a URL."
|
| 37 |
+
return
|
| 38 |
+
|
| 39 |
yield "**Processing... Please wait.** ⏳"
|
| 40 |
|
| 41 |
# Handle URL input
|