sohiyiy commited on
Commit
eba7350
Β·
verified Β·
1 Parent(s): 1ee81af

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. __pycache__/app.cpython-314.pyc +0 -0
  2. app.py +2 -2
  3. requirements.txt +6 -6
__pycache__/app.cpython-314.pyc CHANGED
Binary files a/__pycache__/app.cpython-314.pyc and b/__pycache__/app.cpython-314.pyc differ
 
app.py CHANGED
@@ -601,7 +601,7 @@ with gr.Blocks(title="🐦 BirdSense Pro") as demo:
601
 
602
  with gr.Row():
603
  with gr.Column(scale=1):
604
- audio_in = gr.Audio(source="microphone", type="numpy", label="🎀 Bird Audio")
605
  with gr.Row():
606
  loc = gr.Textbox(label="πŸ“ Location", placeholder="e.g., Western Ghats")
607
  month = gr.Dropdown(label="πŸ“… Month", choices=[""] + [
@@ -628,7 +628,7 @@ with gr.Blocks(title="🐦 BirdSense Pro") as demo:
628
  with gr.Tab("πŸ“· Image"):
629
  with gr.Row():
630
  with gr.Column(scale=1):
631
- img_in = gr.Image(source="upload", type="numpy", label="πŸ“· Bird Image")
632
  img_btn = gr.Button("πŸ” Identify", variant="primary")
633
  with gr.Column(scale=2):
634
  img_out = gr.Markdown()
 
601
 
602
  with gr.Row():
603
  with gr.Column(scale=1):
604
+ audio_in = gr.Audio(sources=["microphone", "upload"], type="numpy", label="🎀 Bird Audio")
605
  with gr.Row():
606
  loc = gr.Textbox(label="πŸ“ Location", placeholder="e.g., Western Ghats")
607
  month = gr.Dropdown(label="πŸ“… Month", choices=[""] + [
 
628
  with gr.Tab("πŸ“· Image"):
629
  with gr.Row():
630
  with gr.Column(scale=1):
631
+ img_in = gr.Image(sources=["upload", "webcam"], type="numpy", label="πŸ“· Bird Image")
632
  img_btn = gr.Button("πŸ” Identify", variant="primary")
633
  with gr.Column(scale=2):
634
  img_out = gr.Markdown()
requirements.txt CHANGED
@@ -1,8 +1,8 @@
1
  # BirdSense Pro - HuggingFace Space
2
- # Using stable Gradio 3.x series
3
 
4
- gradio==3.50.2
5
- numpy>=1.21.0
6
- scipy>=1.7.0
7
- requests>=2.28.0
8
- Pillow>=9.0.0
 
1
  # BirdSense Pro - HuggingFace Space
2
+ # Use latest stable Gradio
3
 
4
+ gradio>=4.0
5
+ numpy
6
+ scipy
7
+ requests
8
+ Pillow