Spaces:
Sleeping
Sleeping
Update app.py
Browse files1234567891011121314151617181920142 unmodified lines163164165166167168169Glitchrrr – Fixed Runtime Error on Your Hugging Face SpaceThe screenshots you shared show a Runtime Error on your Space (Pure666filth/Web-glitch).What Caused the ErrorGradio 6.0 update (used by Hugging Face): theme and css must now be passed to demo.launch() instead of inside gr.Blocks().Incorrect .click() syntax: Outputs were passed as strings (e.g. "output_image") instead of the actual component objects (e.g. output_image).Both issues are now fixed.How to Fix It (30 seconds on your phone)Go to your Space:https://huggingface.co/spaces/Pure666filth/Web-glitch(or open it from your browser history).Tap “Files” tab.Find app.py → tap the pencil icon (edit) or delete it and re-upload.Replace the entire content of app.py with the corrected code below.Scroll down and tap “Commit changes” (leave the default commit message).Hugging Face will automatically rebuild (usually 20–60 seconds).Once it says “Running”, tap “Open in Spaces” — the app will work perfectly.Corrected app.py (copy and paste this entire block)import gradio as grfrom glitch_effects import get_50_effects, apply_effectimport random142 unmodified lines.gr-button {min-height: 52px;}@media (max-width: 768px) { .gr-column {flex-direction: column !important;} }""")Your other files (glitch_effects.py, requirements.txt, README.md) do not need to be changed.After committing the new app.py, your Space will rebuild automatically and the error will disappear. The app will then load correctly on your Android phone.If you see any new message after the rebuild, reply with a screenshot and I will fix it immediately. You are now only one step away from using Glitchrrr live!123142 unmodified lines146147148149import gradio as grfrom glitch_effects import get_50_effects, apply_effectimport random142 unmodified lines.gr-button {min-height: 52px;}@media (max-width: 768px) { .gr-column {flex-direction: column !important;} }""")
app.py+1-21