Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
from omegaconf import OmegaConf
|
3 |
from query import VectaraQuery
|
4 |
import streamlit as st
|
@@ -8,12 +7,13 @@ from PIL import Image
|
|
8 |
topics = {
|
9 |
'Standardized testing in education': '266',
|
10 |
'Ethical implications of genetic editing': '267',
|
11 |
-
'Social media and mental health': '268'
|
|
|
12 |
}
|
13 |
|
14 |
def launch_bot():
|
15 |
def generate_response(question, cfg):
|
16 |
-
response = vq.submit_query(question
|
17 |
return response
|
18 |
|
19 |
def reset():
|
@@ -104,4 +104,3 @@ def launch_bot():
|
|
104 |
|
105 |
if __name__ == "__main__":
|
106 |
launch_bot()
|
107 |
-
|
|
|
|
|
1 |
from omegaconf import OmegaConf
|
2 |
from query import VectaraQuery
|
3 |
import streamlit as st
|
|
|
7 |
topics = {
|
8 |
'Standardized testing in education': '266',
|
9 |
'Ethical implications of genetic editing': '267',
|
10 |
+
'Social media and mental health': '268',
|
11 |
+
'discus': '45'
|
12 |
}
|
13 |
|
14 |
def launch_bot():
|
15 |
def generate_response(question, cfg):
|
16 |
+
response = vq.submit_query(question)
|
17 |
return response
|
18 |
|
19 |
def reset():
|
|
|
104 |
|
105 |
if __name__ == "__main__":
|
106 |
launch_bot()
|
|