waleko commited on
Commit
388679e
1 Parent(s): 22b56e7

Organize imports and add requirements.txt

Browse files

This commit streamlines the import line in translate.py for better readability by putting List and Tuple from 'typing' on the same line. Additionally, a requirements.txt file has been created. This file lists all necessary packages to run the program, making it easier for other developers to know what libraries and versions need to be installed.

Files changed (2) hide show
  1. requirements.txt +5 -0
  2. translate.py +1 -2
requirements.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ gradio
2
+ numpy
3
+ dataclasses
4
+ transformers
5
+ pytorch
translate.py CHANGED
@@ -1,6 +1,5 @@
1
  from dataclasses import dataclass
2
- from typing import List
3
- from typing import Tuple
4
 
5
  import numpy as np
6
  # Load model directly
 
1
  from dataclasses import dataclass
2
+ from typing import List, Tuple
 
3
 
4
  import numpy as np
5
  # Load model directly