Spaces:
Sleeping
Sleeping
Update app.py
Browse files16 unmodified lines171819202120212223242516 unmodified lines res = 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].string match lang_param: case "php": return res.text case _: return BeautifulSoup(res.text, "html.parser").find_all("pre")[0].string
demo = gr.Interface( fn=execute_snippet,app.py+3-2