SergeyO7 commited on
Commit
21d2a33
·
verified ·
1 Parent(s): f090e90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ def process_query(query_text: str, vectorstore):
88
  # Используем модель t5-base вместо google/flan-t5-base
89
  model = HuggingFaceEndpoint(
90
  repo_id="t5-base", # Модель, поддерживающая text2text-generation
91
- task="text2text-generation",
92
  temperature=0.5,
93
  max_length=512,
94
  # huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")
 
88
  # Используем модель t5-base вместо google/flan-t5-base
89
  model = HuggingFaceEndpoint(
90
  repo_id="t5-base", # Модель, поддерживающая text2text-generation
91
+ task="question-answering",
92
  temperature=0.5,
93
  max_length=512,
94
  # huggingfacehub_api_token=os.getenv("HUGGINGFACEHUB_API_TOKEN")