Spaces:
Running
on
Zero
Running
on
Zero
app.py
CHANGED
|
@@ -78,7 +78,17 @@ def create_demo():
|
|
| 78 |
# Input Section
|
| 79 |
with gr.Row():
|
| 80 |
prompt = gr.Textbox(
|
| 81 |
-
value="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
label="Prompt"
|
| 83 |
)
|
| 84 |
|
|
@@ -102,7 +112,7 @@ def create_demo():
|
|
| 102 |
|
| 103 |
# Function to generate responses
|
| 104 |
def generate_responses(
|
| 105 |
-
|
| 106 |
):
|
| 107 |
if len(selected_models) != 2:
|
| 108 |
return "Error: Please select exactly two models to compare.", ""
|
|
|
|
| 78 |
# Input Section
|
| 79 |
with gr.Row():
|
| 80 |
prompt = gr.Textbox(
|
| 81 |
+
value="""CVE-2021-44228 is a remote code execution flaw in Apache Log4j2 via unsafe JNDI lookups ("Log4Shell"). The CWE is CWE-502.
|
| 82 |
+
|
| 83 |
+
CVE-2017-0144 is a remote code execution vulnerability in Microsoft's SMBv1 server ("EternalBlue") due to a buffer overflow. The CWE is CWE-119.
|
| 84 |
+
|
| 85 |
+
CVE-2014-0160 is an information-disclosure bug in OpenSSL's heartbeat extension ("Heartbleed") causing out-of-bounds reads. The CWE is CWE-125.
|
| 86 |
+
|
| 87 |
+
CVE-2017-5638 is a remote code execution issue in Apache Struts 2's Jakarta Multipart parser stemming from improper input validation of the Content-Type header. The CWE is CWE-20.
|
| 88 |
+
|
| 89 |
+
CVE-2019-0708 is a remote code execution vulnerability in Microsoft's Remote Desktop Services ("BlueKeep") triggered by a use-after-free. The CWE is CWE-416.
|
| 90 |
+
|
| 91 |
+
CVE-2015-10011 is a vulnerability about OpenDNS OpenResolve improper log output neutralization. The CWE is""",
|
| 92 |
label="Prompt"
|
| 93 |
)
|
| 94 |
|
|
|
|
| 112 |
|
| 113 |
# Function to generate responses
|
| 114 |
def generate_responses(
|
| 115 |
+
prompt, max_tokens, temperature, top_p, selected_models
|
| 116 |
):
|
| 117 |
if len(selected_models) != 2:
|
| 118 |
return "Error: Please select exactly two models to compare.", ""
|