Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -65,12 +65,14 @@ def reply(input):
|
|
65 |
)["choices"][0]["text"].strip(" \n")
|
66 |
|
67 |
|
68 |
-
|
69 |
-
text_output = gr.outputs.Textbox(label="Answer")
|
70 |
|
71 |
input_text = gr.inputs.Textbox(label="Enter your questions here", placeholder="E.g. What is DNA?")
|
72 |
text_output = gr.outputs.Textbox(label="Answer")
|
73 |
-
|
|
|
|
|
|
|
74 |
description = "Scholar Bot is a question answering system designed to provide accurate and relevant answers to questions from this book hosted by OpenStax https://openstax.org/details/books/biology-ap-courses. Simply enter your question in the text box above and Scholar Bot will use advanced natural language processing algorithms to search a large corpus of biology text to find the best answer for you. Scholar Bot uses the Sentence Transformers model to generate embeddings of text, and OpenAI's GPT-3 language model to provide answers to your questions."
|
75 |
|
76 |
ui = gr.Interface(fn=reply,
|
|
|
65 |
)["choices"][0]["text"].strip(" \n")
|
66 |
|
67 |
|
68 |
+
|
|
|
69 |
|
70 |
input_text = gr.inputs.Textbox(label="Enter your questions here", placeholder="E.g. What is DNA?")
|
71 |
text_output = gr.outputs.Textbox(label="Answer")
|
72 |
+
csv_dropdown = gr.inputs.Dropdown(
|
73 |
+
label="Select CSV file",
|
74 |
+
choices=["AP Bio", "AP Physics"]
|
75 |
+
)
|
76 |
description = "Scholar Bot is a question answering system designed to provide accurate and relevant answers to questions from this book hosted by OpenStax https://openstax.org/details/books/biology-ap-courses. Simply enter your question in the text box above and Scholar Bot will use advanced natural language processing algorithms to search a large corpus of biology text to find the best answer for you. Scholar Bot uses the Sentence Transformers model to generate embeddings of text, and OpenAI's GPT-3 language model to provide answers to your questions."
|
77 |
|
78 |
ui = gr.Interface(fn=reply,
|