bbbipul commited on
Commit
348dccb
·
verified ·
1 Parent(s): 84559fc

Nirnoy try-it page

Browse files
Files changed (3) hide show
  1. README.md +8 -5
  2. app.py +12 -0
  3. requirements.txt +8 -0
README.md CHANGED
@@ -1,13 +1,16 @@
1
  ---
2
  title: Nirnoy
3
- emoji: 📊
4
- colorFrom: blue
5
- colorTo: green
6
  sdk: gradio
7
  sdk_version: 6.29.1
8
- python_version: '3.12'
9
  app_file: app.py
10
  pinned: false
 
 
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
  title: Nirnoy
3
+ emoji: ⚖️
4
+ colorFrom: green
5
+ colorTo: gray
6
  sdk: gradio
7
  sdk_version: 6.29.1
8
+ python_version: "3.12"
9
  app_file: app.py
10
  pinned: false
11
+ short_description: Typed decisions over Bangla, Banglish and English text
12
+ startup_duration_timeout: 1h
13
  ---
14
 
15
+ Nirnoy answers typed questions (pick one option, yes or no, a score on your own scale) about Bangla, Banglish and English
16
+ text, with probabilities, in one request. Nirnoy is in private testing; this page is for trying it.
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Nirnoy try-it page (ZeroGPU). The app and the models are private: this loader fetches the app with the Space's token."""
2
+ import os
3
+ import sys
4
+
5
+ import spaces # noqa: F401 (ZeroGPU: imported before torch)
6
+ from huggingface_hub import snapshot_download
7
+
8
+ sys.path.insert(0, snapshot_download(os.environ.get("APP_REPO", "bbbipul/nirnoy-space-app"), token=os.environ["HF_TOKEN"]))
9
+
10
+ import nirnoy_app # noqa: E402
11
+
12
+ nirnoy_app.main()
requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ torch==2.13.0
2
+ transformers==5.18.0
3
+ accelerate
4
+ safetensors
5
+ numpy
6
+ jinja2
7
+ huggingface_hub
8
+ spaces