Skip to content

Fixed run_ui.py#1

Open
SidmoGoesBrrr wants to merge 1 commit intoCodingWithLewis:masterfrom
SidmoGoesBrrr:master
Open

Fixed run_ui.py#1
SidmoGoesBrrr wants to merge 1 commit intoCodingWithLewis:masterfrom
SidmoGoesBrrr:master

Conversation

@SidmoGoesBrrr
Copy link
Copy Markdown

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.

Fixed the error that pops up when we only upload an image and click generate.
@bahrom04
Copy link
Copy Markdown

bahrom04 commented May 14, 2024

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
Copy link
Copy Markdown
Contributor

elebumm commented May 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants