Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,6 +17,7 @@ def execute_snippet(code_snippet: str = DEF_SNIPPET, lang: str = DEF_LANG) -> st
|
|
| 17 |
res = requests.request("POST", f"https://try.w3schools.com/try_{lang_param}.php", data={
|
| 18 |
"code": code_snippet
|
| 19 |
})
|
|
|
|
| 20 |
return BeautifulSoup(res.text, "html.parser").find_all("pre")[0].string
|
| 21 |
|
| 22 |
demo = gr.Interface(
|
|
|
|
| 17 |
res = requests.request("POST", f"https://try.w3schools.com/try_{lang_param}.php", data={
|
| 18 |
"code": code_snippet
|
| 19 |
})
|
| 20 |
+
print(BeautifulSoup(res.text, "html.parser").find_all("pre"))
|
| 21 |
return BeautifulSoup(res.text, "html.parser").find_all("pre")[0].string
|
| 22 |
|
| 23 |
demo = gr.Interface(
|