pius-code commited on
Commit
ddd056a
·
1 Parent(s): 575c139

add huggingface_hub dependency and clean up summarize_text function

Browse files
Files changed (2) hide show
  1. main.py +0 -1
  2. requirements.txt +2 -0
main.py CHANGED
@@ -58,7 +58,6 @@ async def summarize_text(input: TextInput):
58
  }
59
 
60
 
61
-
62
  @app.post("/translateFrench")
63
  async def translate(input: TextInput):
64
  input.text = "translate English to French: " + input.text
 
58
  }
59
 
60
 
 
61
  @app.post("/translateFrench")
62
  async def translate(input: TextInput):
63
  input.text = "translate English to French: " + input.text
requirements.txt CHANGED
@@ -2,4 +2,6 @@ fastapi
2
  transformers
3
  uvicorn
4
  torch
 
 
5
 
 
2
  transformers
3
  uvicorn
4
  torch
5
+ huggingface_hub[hf_xet]
6
+ hf_xet
7