pentarosarium commited on
Commit
810b0fe
·
1 Parent(s): 689775d
Files changed (2) hide show
  1. app.py +4 -2
  2. requirements.txt +3 -4
app.py CHANGED
@@ -10,7 +10,9 @@ from rapidfuzz import fuzz
10
  import time
11
  import os
12
  groq_key = os.environ['groq_key']
13
- from langchain_openai import ChatOpenAI
 
 
14
 
15
 
16
  def fuzzy_deduplicate(df, column, threshold=55):
@@ -530,7 +532,7 @@ def create_interface():
530
  control = ProcessControl()
531
 
532
  with gr.Blocks(theme=gr.themes.Soft()) as app:
533
- gr.Markdown("# AI-анализ мониторинга новостей v.1.26+")
534
 
535
  with gr.Row():
536
  file_input = gr.File(
 
10
  import time
11
  import os
12
  groq_key = os.environ['groq_key']
13
+ from langchain_openai import ChatOpenAI
14
+ from langchain.prompts import PromptTemplate
15
+
16
 
17
 
18
  def fuzzy_deduplicate(df, column, threshold=55):
 
532
  control = ProcessControl()
533
 
534
  with gr.Blocks(theme=gr.themes.Soft()) as app:
535
+ gr.Markdown("# AI-анализ мониторинга новостей v.1.27")
536
 
537
  with gr.Row():
538
  file_input = gr.File(
requirements.txt CHANGED
@@ -9,19 +9,18 @@ openpyxl
9
  rapidfuzz
10
  matplotlib
11
  sacremoses
12
- langchain
13
- langchain-community
14
  huggingface_hub
15
  accelerate>=0.26.0
16
  openai
17
  wordcloud
18
  pdfkit
19
  Jinja2==3.1.2
20
- langchain_openai
21
  optimum
22
  sentencepiece
23
  deep_translator
24
  googletrans
25
  plotly
26
  datetime
27
- langchain_openai
 
 
 
9
  rapidfuzz
10
  matplotlib
11
  sacremoses
 
 
12
  huggingface_hub
13
  accelerate>=0.26.0
14
  openai
15
  wordcloud
16
  pdfkit
17
  Jinja2==3.1.2
 
18
  optimum
19
  sentencepiece
20
  deep_translator
21
  googletrans
22
  plotly
23
  datetime
24
+ langchain_openai
25
+ langchain
26
+ langchain-community