Update .huggingface.yaml
Browse files- .huggingface.yaml +1 -12
.huggingface.yaml
CHANGED
|
@@ -1,16 +1,5 @@
|
|
| 1 |
sdk: streamlit
|
| 2 |
app_file: app.py
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
### Optional: Add `try/except` to `run_answer_function()`:
|
| 7 |
-
|
| 8 |
-
```python
|
| 9 |
-
def run_answer_function(code, wn, results):
|
| 10 |
-
local_vars = {"wn": wn, "results": results}
|
| 11 |
-
try:
|
| 12 |
-
exec(code, {}, local_vars)
|
| 13 |
-
return local_vars["answer"]()
|
| 14 |
-
except Exception as e:
|
| 15 |
-
return f"⚠️ Error in generated code: {e}"
|
| 16 |
|
|
|
|
| 1 |
sdk: streamlit
|
| 2 |
app_file: app.py
|
| 3 |
|
| 4 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|