Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ if st.button('Générer l’article' if selected_language == "Français" else 'G
|
|
51 |
|
52 |
response = requests.post(url, json=headers)
|
53 |
if response.status_code != 200:
|
54 |
-
st.error('Gemini
|
55 |
st.stop()
|
56 |
else:
|
57 |
article = response.text
|
|
|
51 |
|
52 |
response = requests.post(url, json=headers)
|
53 |
if response.status_code != 200:
|
54 |
+
st.error('Gemini quota reached (Think about upgrading Gemini)' if selected_language == "Français" else 'Gemini failed to generate article.')
|
55 |
st.stop()
|
56 |
else:
|
57 |
article = response.text
|