Update app.py
Browse files
app.py
CHANGED
@@ -47,11 +47,6 @@ def predict_fn(image):
|
|
47 |
return f"Error in prediction: {str(e)}"
|
48 |
|
49 |
# Gradio application interface
|
50 |
-
gr
|
51 |
-
|
52 |
-
|
53 |
-
outputs="label",
|
54 |
-
title="DoodleDecoder",
|
55 |
-
description="Draw something from: Car, House, Wine bottle, Chair, Table, Tree, Camera, Fish, Rain, Clock, Hat",
|
56 |
-
article="Draw large with thick stroke."
|
57 |
-
).launch()
|
|
|
47 |
return f"Error in prediction: {str(e)}"
|
48 |
|
49 |
# Gradio application interface
|
50 |
+
import gradio as gr
|
51 |
+
gr.Interface(fn=predict_fn, inputs="paint", outputs="label", title="DoodleDecoder", description="Draw something from: Car, House, Wine bottle, Chair, Table, Tree, Camera, Fish, Rain, Clock, Hat", interpretation='default', article="Draw large with thick stroke.").launch()
|
52 |
+
|
|
|
|
|
|
|
|
|
|