Suzen Fylke commited on
Commit
fd830fd
·
1 Parent(s): be91caa

Upgrade gradio version and pin dependencies

Browse files
Files changed (3) hide show
  1. README.md +2 -1
  2. app.py +1 -1
  3. requirements.txt +7 -7
README.md CHANGED
@@ -3,8 +3,9 @@ title: Dystopedia
3
  emoji: 🫠
4
  colorFrom: green
5
  colorTo: purple
 
6
  sdk: gradio
7
- sdk_version: 3.1.6
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
3
  emoji: 🫠
4
  colorFrom: green
5
  colorTo: purple
6
+ python_version: 3.11.5
7
  sdk: gradio
8
+ sdk_version: 5.1.0
9
  app_file: app.py
10
  pinned: false
11
  license: apache-2.0
app.py CHANGED
@@ -56,7 +56,7 @@ def launch_demo(**kwargs):
56
  "Dystopedia uses [DistilBERT base uncased finetuned SST-2](https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english) "
57
  "for sentiment analysis and is subject to its limitations and biases."
58
  )
59
- examples = ["joy", "hope", "peace", "Earth", "water", "food"]
60
  gr.Interface(
61
  fn=get_dystopian_summary,
62
  inputs=gr.Textbox(label="term", placeholder="Enter a term...", max_lines=1),
 
56
  "Dystopedia uses [DistilBERT base uncased finetuned SST-2](https://huggingface.co/distilbert-base-uncased-finetuned-sst-2-english) "
57
  "for sentiment analysis and is subject to its limitations and biases."
58
  )
59
+ examples = [["joy"], ["hope"], ["peace"], ["Earth"], ["water"], ["food"]]
60
  gr.Interface(
61
  fn=get_dystopian_summary,
62
  inputs=gr.Textbox(label="term", placeholder="Enter a term...", max_lines=1),
requirements.txt CHANGED
@@ -1,7 +1,7 @@
1
- lemminflect
2
- gradio
3
- spacy
4
- torch
5
- transformers
6
- wikipedia
7
- https://huggingface.co/spacy/en_core_web_lg/resolve/main/en_core_web_lg-any-py3-none-any.whl
 
1
+ lemminflect==0.2.3
2
+ gradio==5.1.0
3
+ spacy==3.7.5
4
+ torch==2.5.0
5
+ transformers==4.45.2
6
+ wikipedia==1.4.0
7
+ en_core_web_lg @ https://huggingface.co/spacy/en_core_web_lg/resolve/main/en_core_web_lg-any-py3-none-any.whl