CodingWithLewis / MemeGenerator

84 stars 25 forks source link

Fixed run_ui.py #1

Open SidmoGoesBrrr opened 5 months ago

SidmoGoesBrrr commented 5 months ago

Fixed the error that pops up when we only upload an image and click generate. This now asks the user to enter a valid news article.

bahrom04 commented 5 months ago

if i enter news url and image for ex (two spider man) i got this error: news url: https://edition.cnn.com/politics/live-news/trump-hush-money-trial-05-14-24/index.html image: https://github.com/CodingWithLewis/MemeGenerator/blob/master/tests/image.jpg openai.AuthenticationError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).

elebumm commented 5 months ago

The code you put in has a syntax error. Perhaps just a simple if not news_article.strip(): would work?