Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from langchain.schema import AIMessage, HumanMessage
|
|
| 11 |
from langchain import PromptTemplate, LLMChain
|
| 12 |
from langchain.llms import TextGen
|
| 13 |
from langchain.cache import InMemoryCache
|
| 14 |
-
|
| 15 |
import langchain
|
| 16 |
import os
|
| 17 |
OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
|
|
@@ -52,5 +52,5 @@ langchain.llm_cache = InMemoryCache()
|
|
| 52 |
gr.ChatInterface(predict,
|
| 53 |
textbox=gr.Textbox(placeholder="请输入您的问题", container=False, scale=7),
|
| 54 |
title="欢迎使用ANSYS软件AI机器人",
|
| 55 |
-
examples=["你是谁?", "请介绍一下Fluent 软件的用户界面说明", "
|
| 56 |
description="🦊请避免输入有违公序良俗的问题,模型可能无法回答不合适的问题🐇",).queue().launch()
|
|
|
|
| 11 |
from langchain import PromptTemplate, LLMChain
|
| 12 |
from langchain.llms import TextGen
|
| 13 |
from langchain.cache import InMemoryCache
|
| 14 |
+
import time
|
| 15 |
import langchain
|
| 16 |
import os
|
| 17 |
OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
|
|
|
|
| 52 |
gr.ChatInterface(predict,
|
| 53 |
textbox=gr.Textbox(placeholder="请输入您的问题", container=False, scale=7),
|
| 54 |
title="欢迎使用ANSYS软件AI机器人",
|
| 55 |
+
examples=["你是谁?", "请介绍一下Fluent 软件的用户界面说明", "create-bounding-box","ANSYS Fluent Architecture"],
|
| 56 |
description="🦊请避免输入有违公序良俗的问题,模型可能无法回答不合适的问题🐇",).queue().launch()
|