lfolle commited on
Commit
f8dbcd9
1 Parent(s): 476448f

Added hand ki model requirement.

Browse files
Files changed (2) hide show
  1. app.py +2 -3
  2. requirements.txt +1 -0
app.py CHANGED
@@ -2,10 +2,8 @@ import gradio as gr
2
 
3
  from backend import Infer
4
 
5
-
6
  DEBUG = True
7
 
8
-
9
  infer = Infer(DEBUG)
10
 
11
  with gr.Blocks(analytics_enabled=False, title="DeepNAPSI Prediction") as demo:
@@ -13,7 +11,8 @@ with gr.Blocks(analytics_enabled=False, title="DeepNAPSI Prediction") as demo:
13
  gr.Markdown("Upload an image of the hand and click **Predict NAPSI** to see the output.")
14
  with gr.Column():
15
  image_input = gr.Image()
16
- image_button = gr.Button("Predict NAPSI")
 
17
  outputs = []
18
  with gr.Row():
19
  with gr.Column():
 
2
 
3
  from backend import Infer
4
 
 
5
  DEBUG = True
6
 
 
7
  infer = Infer(DEBUG)
8
 
9
  with gr.Blocks(analytics_enabled=False, title="DeepNAPSI Prediction") as demo:
 
11
  gr.Markdown("Upload an image of the hand and click **Predict NAPSI** to see the output.")
12
  with gr.Column():
13
  image_input = gr.Image()
14
+ with gr.Row():
15
+ image_button = gr.Button("Predict NAPSI")
16
  outputs = []
17
  with gr.Row():
18
  with gr.Column():
requirements.txt CHANGED
@@ -1,5 +1,6 @@
1
  cvs2
2
  numpy
 
3
  gradio
4
  huggingface_hub
5
  torch
 
1
  cvs2
2
  numpy
3
+ git+https://git5.cs.fau.de/folle/hand-ki-model.git
4
  gradio
5
  huggingface_hub
6
  torch