guru001 commited on
Commit
171ed6b
β€’
1 Parent(s): a37501a

adding blocks works ?

Browse files
Files changed (2) hide show
  1. README.md +13 -1
  2. app.py +6 -1
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Sample
3
  emoji: πŸ‘€
4
  colorFrom: yellow
5
  colorTo: red
@@ -12,3 +12,15 @@ python_version: 3.7
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: handsigns-classifier-tf
3
  emoji: πŸ‘€
4
  colorFrom: yellow
5
  colorTo: red
 
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
15
+
16
+ ## Examples
17
+
18
+ [mindseye-lite/app.py | huggingface](https://huggingface.co/spaces/multimodalart/mindseye-lite/blob/main/app.py)
19
+
20
+ [ModIA/FrenchDroneKeyword | huggingface](https://huggingface.co/spaces/ModIA/FrenchDroneKeyword/commit/976aebd7053e75b4bdb76e6c802bc25e38350b42)
21
+
22
+ [ysharma/nougat | huggingface](https://huggingface.co/spaces/ysharma/nougat/blob/main/app.py)
23
+
24
+ ## Steamlit
25
+
26
+ [Generative AI and Streamlit: A perfect match](https://blog.streamlit.io/generative-ai-and-streamlit-a-perfect-match/)
app.py CHANGED
@@ -10,5 +10,10 @@ def sign(input_img):
10
  print('prediction',prediction)
11
  return prediction['class']
12
 
13
- demo = gr.Interface(sign,inputs=gr.Image(shape=(200, 200)), outputs=gr.Label())
 
 
 
 
 
14
  demo.launch()
 
10
  print('prediction',prediction)
11
  return prediction['class']
12
 
13
+ css = ''
14
+
15
+ with gr.Blocks(css=css) as demo:
16
+ gr.HTML("<h1><center>Signsapp: Classify the signs based on the hands sign images<center><h1>")
17
+ gr.Interface(sign,inputs=gr.Image(shape=(200, 200)), outputs=gr.Label())
18
+
19
  demo.launch()