Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def function_b(query):
|
|
| 13 |
def handle_query(function_choice, query):
|
| 14 |
function_map = {
|
| 15 |
"FinBERT": function_a,
|
| 16 |
-
"
|
| 17 |
|
| 18 |
}
|
| 19 |
|
|
@@ -27,7 +27,7 @@ def handle_query(function_choice, query):
|
|
| 27 |
iface = gr.Interface(
|
| 28 |
fn=handle_query,
|
| 29 |
inputs=[
|
| 30 |
-
gr.Radio(["
|
| 31 |
gr.Textbox(label="Enter Query")
|
| 32 |
],
|
| 33 |
outputs=gr.Textbox(label="Response"),
|
|
|
|
| 13 |
def handle_query(function_choice, query):
|
| 14 |
function_map = {
|
| 15 |
"FinBERT": function_a,
|
| 16 |
+
"Dolly Finetuned": function_b,
|
| 17 |
|
| 18 |
}
|
| 19 |
|
|
|
|
| 27 |
iface = gr.Interface(
|
| 28 |
fn=handle_query,
|
| 29 |
inputs=[
|
| 30 |
+
gr.Radio(["FinBERT", "Dolly Finetuned"], label="Select Function"),
|
| 31 |
gr.Textbox(label="Enter Query")
|
| 32 |
],
|
| 33 |
outputs=gr.Textbox(label="Response"),
|