Spaces:
Sleeping
Sleeping
Update app.py
Browse files16 unmodified lines171819202122232416 unmodified linesres = requests.request("POST", f"https://try.w3schools.com/try_{lang_param}.php", data={"code": code_snippet})print(BeautifulSoup(res.text, "html.parser").find_all("pre"))return BeautifulSoup(res.text, "html.parser").find_all("pre")[0].stringdemo = gr.Interface(fn=execute_snippet,16 unmodified lines17181920212223242516 unmodified linesres = requests.request("POST", f"https://try.w3schools.com/try_{lang_param}.php", data={"code": code_snippet})match lang_param:case "php": return res.textcase _: return BeautifulSoup(res.text, "html.parser").find_all("pre")[0].stringdemo = gr.Interface(fn=execute_snippet,
app.py+3-2