Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,11 +88,11 @@ def main() -> None:
|
|
| 88 |
from llama_index import load_index_from_storage
|
| 89 |
index = load_index_from_storage(store)
|
| 90 |
query_engine = index.as_query_engine(service_context=service)
|
| 91 |
-
robot = AzureOpenAIXPipeWikiRobot(query_engine)
|
| 92 |
query = st.text_input("X-Pipe Wiki 问题:")
|
| 93 |
if query:
|
| 94 |
-
response = robot.ask(question=query)
|
| 95 |
-
st.write(
|
| 96 |
|
| 97 |
|
| 98 |
if __name__ == "__main__":
|
|
|
|
| 88 |
from llama_index import load_index_from_storage
|
| 89 |
index = load_index_from_storage(store)
|
| 90 |
query_engine = index.as_query_engine(service_context=service)
|
| 91 |
+
# robot = AzureOpenAIXPipeWikiRobot(query_engine)
|
| 92 |
query = st.text_input("X-Pipe Wiki 问题:")
|
| 93 |
if query:
|
| 94 |
+
# response = robot.ask(question=query)
|
| 95 |
+
st.write(query_engine.query(question))
|
| 96 |
|
| 97 |
|
| 98 |
if __name__ == "__main__":
|