Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,12 @@ def reply(input, dataset_name):
|
|
70 |
model="text-davinci-003"
|
71 |
)["choices"][0]["text"].strip(" \n")
|
72 |
return response
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
74 |
except Exception as e:
|
75 |
return f"An error occurred: {e}"
|
76 |
|
@@ -78,12 +83,7 @@ def reply(input, dataset_name):
|
|
78 |
|
79 |
|
80 |
|
81 |
-
|
82 |
-
label="Select the Book",
|
83 |
-
choices=["AP_Bio", "AP_Physics"],
|
84 |
-
default="AP_Bio"
|
85 |
-
|
86 |
-
)
|
87 |
input_text = gr.inputs.Textbox(
|
88 |
label="Enter your questions here",
|
89 |
placeholder="E.g. What is DNA?",
|
|
|
70 |
model="text-davinci-003"
|
71 |
)["choices"][0]["text"].strip(" \n")
|
72 |
return response
|
73 |
+
csv_dropdown = gr.inputs.Dropdown(
|
74 |
+
label="Select the Book",
|
75 |
+
choices=["AP_Bio", "AP_Physics"],
|
76 |
+
default="AP_Bio"
|
77 |
+
|
78 |
+
)
|
79 |
except Exception as e:
|
80 |
return f"An error occurred: {e}"
|
81 |
|
|
|
83 |
|
84 |
|
85 |
|
86 |
+
|
|
|
|
|
|
|
|
|
|
|
87 |
input_text = gr.inputs.Textbox(
|
88 |
label="Enter your questions here",
|
89 |
placeholder="E.g. What is DNA?",
|