Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,11 +42,11 @@ def main() -> None:
|
|
| 42 |
from llama_index import load_index_from_storage
|
| 43 |
index = load_index_from_storage(store)
|
| 44 |
query_engine = index.as_query_engine(service_context=service)
|
| 45 |
-
robot = AzureOpenAIXPipeWikiRobot(query_engine)
|
| 46 |
query = st.text_input("X-Pipe Wiki 问题:")
|
| 47 |
if query:
|
| 48 |
-
response = robot.ask(question=query)
|
| 49 |
-
st.write(
|
| 50 |
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|
|
|
|
| 42 |
from llama_index import load_index_from_storage
|
| 43 |
index = load_index_from_storage(store)
|
| 44 |
query_engine = index.as_query_engine(service_context=service)
|
| 45 |
+
# robot = AzureOpenAIXPipeWikiRobot(query_engine)
|
| 46 |
query = st.text_input("X-Pipe Wiki 问题:")
|
| 47 |
if query:
|
| 48 |
+
# response = robot.ask(question=query)
|
| 49 |
+
st.write(query_engine.query(question))
|
| 50 |
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|