Spaces:
Running
Running
Organize imports and add requirements.txt
Browse filesThis 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.
- requirements.txt +5 -0
- 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
|