retr04error commited on
Commit
1a49556
1 Parent(s): 8e5d9cf
Files changed (2) hide show
  1. app.py +1 -1
  2. flaskAPI.py +2 -10
app.py CHANGED
@@ -4,4 +4,4 @@ def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
4
  return "Hello " + name + "!!"
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+ iface.launch(share=True)
flaskAPI.py CHANGED
@@ -71,13 +71,5 @@ def check_vulnerabilities_api():
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)
 
71
  except Exception as e:
72
  return jsonify({'error': str(e)}), 500
73
 
74
+ if __name__ == '__main__':
75
+ app.run()