mamechin
commited on
Commit
•
5af6a0f
1
Parent(s):
6e577c6
v1
Browse files
app.py
CHANGED
@@ -1,7 +1,26 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def predict(input_image):
|
4 |
+
"""
|
5 |
+
Predict model output
|
6 |
+
"""
|
7 |
+
price = "0"
|
8 |
+
return [input_image, price]
|
9 |
|
10 |
+
with gr.Blocks() as demo:
|
11 |
+
# Title
|
12 |
+
gr.Markdown(
|
13 |
+
"""
|
14 |
+
<h1 align="center">AI Cafeteria Price Evaluator</h1>
|
15 |
+
""")
|
16 |
+
|
17 |
+
# Model Evaluation
|
18 |
+
gr.Interface(
|
19 |
+
fn=predict,
|
20 |
+
inputs=gr.Image(type="pil"),
|
21 |
+
outputs=[gr.Image(type="pil", label="Image Prediction"),
|
22 |
+
gr.Textbox(type="text", label="Price Prediction")]
|
23 |
+
)
|
24 |
+
|
25 |
+
if __name__ == "__main__":
|
26 |
+
demo.launch()
|