RYU-KASH commited on
Commit
cc5ed48
·
verified ·
1 Parent(s): cbc90d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -721,7 +721,8 @@ class FeatureExtraction:
721
  gbc = GradientBoostingClassifier(max_depth=4,learning_rate=0.7)
722
  gbc.fit(X_train,y_train)
723
 
724
- url=input("Enter the Url here:")
 
725
  #can provide any URL. this URL was taken from PhishTank
726
  obj = FeatureExtraction(url)
727
  x = np.array(obj.getFeaturesList()).reshape(1,30)
 
721
  gbc = GradientBoostingClassifier(max_depth=4,learning_rate=0.7)
722
  gbc.fit(X_train,y_train)
723
 
724
+ import gradio as gr
725
+ url = gr.inputs.Text(lines=1, placeholder="Enter the URL here")
726
  #can provide any URL. this URL was taken from PhishTank
727
  obj = FeatureExtraction(url)
728
  x = np.array(obj.getFeaturesList()).reshape(1,30)