Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
imseldrith
/
DeepFakeAI
like
121
Running
App
Files
Files
Community
16
imseldrith
commited on
Aug 29, 2023
Commit
cc6875e
·
1 Parent(s):
1431b79
Create del.py
Browse files
Files changed (1)
hide
show
del.py
+9
-0
del.py
ADDED
Viewed
@@ -0,0 +1,9 @@
1
+
import shutil
2
+
import gradio as gr
3
+
4
+
def del(text):
5
+
txt = text
6
+
shutil.rmtree("./output")
7
+
return "Removed successfully..."
8
+
9
+
gr.Interface(del, "text","text").launch(debug=True)