Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,23 @@ def predict(image):
|
|
9 |
predictions = pipeline(image)
|
10 |
return {p["label"]: p["score"] for p in predictions}
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
gr.Interface(
|
19 |
predict,
|
|
|
9 |
predictions = pipeline(image)
|
10 |
return {p["label"]: p["score"] for p in predictions}
|
11 |
|
12 |
+
title = "<br>Hot dog or not?<br>"
|
13 |
+
description = "This is a demo of the hotdog-not-hotdog model by julien-c.<br><br>"
|
14 |
+
|
15 |
+
grad.Interface(fn=generate,
|
16 |
+
inputs=txt,
|
17 |
+
outputs=out,
|
18 |
+
examples=examples,
|
19 |
+
title=title,
|
20 |
+
description=description,
|
21 |
+
article='',
|
22 |
+
allow_flagging='never',
|
23 |
+
cache_examples=False,
|
24 |
+
theme="default").launch(enable_queue=True, debug=True)
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
+
|
29 |
|
30 |
gr.Interface(
|
31 |
predict,
|