Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,6 +63,10 @@ def predict(img):
|
|
63 |
|
64 |
return result_text
|
65 |
|
|
|
|
|
|
|
|
|
66 |
# Gradio Interface with Input and Output in a Row Layout
|
67 |
with gr.Blocks() as interface:
|
68 |
gr.Markdown("# VGG16 Fine-tuned Defect Classification")
|
|
|
63 |
|
64 |
return result_text
|
65 |
|
66 |
+
# Function to clear input and output
|
67 |
+
def clear():
|
68 |
+
return None, ""
|
69 |
+
|
70 |
# Gradio Interface with Input and Output in a Row Layout
|
71 |
with gr.Blocks() as interface:
|
72 |
gr.Markdown("# VGG16 Fine-tuned Defect Classification")
|