Spaces:
Runtime error
Runtime error
Commit
·
7211564
1
Parent(s):
06a5ab5
Upload folder using huggingface_hub
Browse files- conversation.py +1 -1
- temp.ipynb +28 -0
conversation.py
CHANGED
@@ -52,7 +52,7 @@ prompt = OpenAIFunctionsAgent.create_prompt(
|
|
52 |
extra_prompt_messages=[MessagesPlaceholder(variable_name=memory_key)],
|
53 |
)
|
54 |
|
55 |
-
agent_executor = create_conversational_retrieval_agent(llm, tools, verbose=
|
56 |
user_name = None
|
57 |
|
58 |
def run(input_):
|
|
|
52 |
extra_prompt_messages=[MessagesPlaceholder(variable_name=memory_key)],
|
53 |
)
|
54 |
|
55 |
+
agent_executor = create_conversational_retrieval_agent(llm, tools, verbose=False, prompt=prompt)
|
56 |
user_name = None
|
57 |
|
58 |
def run(input_):
|
temp.ipynb
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
+
"metadata": {},
|
7 |
+
"outputs": [],
|
8 |
+
"source": [
|
9 |
+
"import gradio as gr\n",
|
10 |
+
"from conversation import make_conversation, auth_function\n",
|
11 |
+
"import random\n",
|
12 |
+
"\n",
|
13 |
+
"with gr.Blocks(css=\"style.css\") as demo:\n",
|
14 |
+
" gr.Markdown(\"##DR. VAI\")\n",
|
15 |
+
" gr.ChatInterface(make_conversation).queue()\n",
|
16 |
+
"\n",
|
17 |
+
"demo.launch()"
|
18 |
+
]
|
19 |
+
}
|
20 |
+
],
|
21 |
+
"metadata": {
|
22 |
+
"language_info": {
|
23 |
+
"name": "python"
|
24 |
+
}
|
25 |
+
},
|
26 |
+
"nbformat": 4,
|
27 |
+
"nbformat_minor": 2
|
28 |
+
}
|