mvaloatto commited on
Commit
d7e3fe2
1 Parent(s): c9b40ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -5
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
- gr.Interface(
13
- title="Hot Dog? Or Not?",
14
- inputs="",
15
- outputs="",
16
- ).launch()
 
 
 
 
 
 
 
 
 
 
 
 
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,