Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -220,7 +220,7 @@ Context:
|
|
220 |
# )
|
221 |
# )
|
222 |
|
223 |
-
return
|
224 |
model=model_name,
|
225 |
messages=messages,
|
226 |
max_tokens=500,
|
@@ -347,7 +347,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
347 |
# ),
|
348 |
# ],
|
349 |
# )
|
350 |
-
rag_system = AdvancedRAGSystem(embed_model,
|
351 |
demo = create_gradio_interface(rag_system)
|
352 |
|
353 |
|
|
|
220 |
# )
|
221 |
# )
|
222 |
|
223 |
+
return self.llm.chat.completions.create(
|
224 |
model=model_name,
|
225 |
messages=messages,
|
226 |
max_tokens=500,
|
|
|
347 |
# ),
|
348 |
# ],
|
349 |
# )
|
350 |
+
rag_system = AdvancedRAGSystem(embed_model, client)
|
351 |
demo = create_gradio_interface(rag_system)
|
352 |
|
353 |
|