Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -510,9 +510,9 @@ def get_status():
|
|
| 510 |
return "🟡 HuggingFace (Free)"
|
| 511 |
|
| 512 |
|
| 513 |
-
with gr.Blocks(
|
| 514 |
|
| 515 |
-
# CSS
|
| 516 |
gr.HTML(f"<style>{CSS}</style>")
|
| 517 |
|
| 518 |
# Header
|
|
@@ -532,7 +532,7 @@ with gr.Blocks(title="BirdSense Pro", theme=gr.themes.Soft()) as demo:
|
|
| 532 |
|
| 533 |
with gr.Row():
|
| 534 |
with gr.Column():
|
| 535 |
-
audio_in = gr.Audio(sources=["microphone", "upload"], type="numpy", label="Record or Upload"
|
| 536 |
with gr.Row():
|
| 537 |
loc_in = gr.Textbox(label="Location", placeholder="e.g., Mumbai")
|
| 538 |
month_in = gr.Dropdown(label="Month", choices=["", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"])
|
|
@@ -579,4 +579,4 @@ if __name__ == "__main__":
|
|
| 579 |
print(f"Status: {get_status()}")
|
| 580 |
print(f"HF_TOKEN: {'Set' if HF_TOKEN else 'Not set'}")
|
| 581 |
print("URL: http://localhost:7860\n")
|
| 582 |
-
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 510 |
return "🟡 HuggingFace (Free)"
|
| 511 |
|
| 512 |
|
| 513 |
+
with gr.Blocks() as demo:
|
| 514 |
|
| 515 |
+
# CSS (injected via HTML for compatibility)
|
| 516 |
gr.HTML(f"<style>{CSS}</style>")
|
| 517 |
|
| 518 |
# Header
|
|
|
|
| 532 |
|
| 533 |
with gr.Row():
|
| 534 |
with gr.Column():
|
| 535 |
+
audio_in = gr.Audio(sources=["microphone", "upload"], type="numpy", label="Record or Upload")
|
| 536 |
with gr.Row():
|
| 537 |
loc_in = gr.Textbox(label="Location", placeholder="e.g., Mumbai")
|
| 538 |
month_in = gr.Dropdown(label="Month", choices=["", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"])
|
|
|
|
| 579 |
print(f"Status: {get_status()}")
|
| 580 |
print(f"HF_TOKEN: {'Set' if HF_TOKEN else 'Not set'}")
|
| 581 |
print("URL: http://localhost:7860\n")
|
| 582 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, show_error=True)
|