Spaces:
Running
Running
Commit
·
f70decf
1
Parent(s):
a5e32d1
progress more 67
Browse files- app.py +3 -2
- requirements.txt +1 -0
app.py
CHANGED
@@ -23,8 +23,9 @@ from huggingface_hub import login
|
|
23 |
from accelerate import init_empty_weights
|
24 |
import logging
|
25 |
import os
|
|
|
26 |
from transformers import MarianMTModel, MarianTokenizer
|
27 |
-
from
|
28 |
|
29 |
|
30 |
class TranslationModel:
|
@@ -493,7 +494,7 @@ def create_output_file(df, uploaded_file, analysis_df):
|
|
493 |
return output
|
494 |
|
495 |
def main():
|
496 |
-
st.title("... приступим к анализу... версия
|
497 |
|
498 |
# Initialize session state
|
499 |
if 'processed_df' not in st.session_state:
|
|
|
23 |
from accelerate import init_empty_weights
|
24 |
import logging
|
25 |
import os
|
26 |
+
import openai
|
27 |
from transformers import MarianMTModel, MarianTokenizer
|
28 |
+
from langchain_community.chat_models import ChatOpenAI
|
29 |
|
30 |
|
31 |
class TranslationModel:
|
|
|
494 |
return output
|
495 |
|
496 |
def main():
|
497 |
+
st.title("... приступим к анализу... версия 67")
|
498 |
|
499 |
# Initialize session state
|
500 |
if 'processed_df' not in st.session_state:
|
requirements.txt
CHANGED
@@ -14,3 +14,4 @@ langchain
|
|
14 |
langchain-community
|
15 |
huggingface_hub
|
16 |
accelerate>=0.26.0
|
|
|
|
14 |
langchain-community
|
15 |
huggingface_hub
|
16 |
accelerate>=0.26.0
|
17 |
+
openai
|