Spaces:
Sleeping
Sleeping
Commit
·
7e36173
1
Parent(s):
e7ed28e
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
|
|
3 |
|
4 |
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
5 |
server_port=9000
|
@@ -12,4 +13,4 @@ gr.Interface(
|
|
12 |
inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
|
13 |
outputs=gr.outputs.Label(num_top_classes=2),
|
14 |
title="Hot Dog? Or Not?",
|
15 |
-
).launch(server_port)
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
+
export GRADIO_SERVER_PORT=8080
|
4 |
|
5 |
pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
|
6 |
server_port=9000
|
|
|
13 |
inputs=gr.inputs.Image(label="Upload hot dog candidate", type="filepath"),
|
14 |
outputs=gr.outputs.Label(num_top_classes=2),
|
15 |
title="Hot Dog? Or Not?",
|
16 |
+
).launch(server_port=8080)
|