Spaces:
Runtime error
Runtime error
Commit
•
8e5d9cf
1
Parent(s):
55b1360
ff
Browse files- flaskAPI.py +10 -2
flaskAPI.py
CHANGED
@@ -71,5 +71,13 @@ def check_vulnerabilities_api():
|
|
71 |
except Exception as e:
|
72 |
return jsonify({'error': str(e)}), 500
|
73 |
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
except Exception as e:
|
72 |
return jsonify({'error': str(e)}), 500
|
73 |
|
74 |
+
interface = gr.Interface(
|
75 |
+
fn=check_vulnerabilities,
|
76 |
+
inputs=[gr.inputs.Textbox(label="Solidity File URL"), gr.inputs.Textbox(label="File ID")],
|
77 |
+
outputs="json",
|
78 |
+
title="Solidity Vulnerability Checker",
|
79 |
+
description="Enter the URL of a Solidity file and a file ID to check for vulnerabilities."
|
80 |
+
)
|
81 |
+
|
82 |
+
if __name__ == "__main__":
|
83 |
+
interface.launch(share=True)
|