Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ def get_data():
|
|
| 176 |
'''
|
| 177 |
|
| 178 |
example4='''Fix vulnerability CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in the following code snippet.
|
| 179 |
-
|
| 180 |
def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_command_live) -> str:
|
| 181 |
if desc is not None:
|
| 182 |
print(desc)
|
|
@@ -202,7 +202,6 @@ def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_
|
|
| 202 |
error_bits.append(f"stderr: {{result.stderr}}")
|
| 203 |
raise RuntimeError("\n".join(error_bits))
|
| 204 |
return (result.stdout or "")
|
| 205 |
-
```
|
| 206 |
'''
|
| 207 |
|
| 208 |
chat_interface = gr.ChatInterface(
|
|
|
|
| 176 |
'''
|
| 177 |
|
| 178 |
example4='''Fix vulnerability CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in the following code snippet.
|
| 179 |
+
|
| 180 |
def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_command_live) -> str:
|
| 181 |
if desc is not None:
|
| 182 |
print(desc)
|
|
|
|
| 202 |
error_bits.append(f"stderr: {{result.stderr}}")
|
| 203 |
raise RuntimeError("\n".join(error_bits))
|
| 204 |
return (result.stdout or "")
|
|
|
|
| 205 |
'''
|
| 206 |
|
| 207 |
chat_interface = gr.ChatInterface(
|