Spaces:
Runtime error
Runtime error
Commit
·
f6a1730
1
Parent(s):
20d5f92
update descriptions
Browse files
app.py
CHANGED
@@ -413,13 +413,18 @@ def get_answer(question, api_key):
|
|
413 |
|
414 |
return f"{response[0]} \n\nSource: {response[1]}"
|
415 |
|
|
|
|
|
|
|
|
|
|
|
416 |
# Create a Gradio interface
|
417 |
iface = gr.Interface(
|
418 |
fn=get_answer,
|
419 |
inputs=["text", gr.inputs.Textbox(label="Password")],
|
420 |
outputs="text",
|
421 |
-
title="Question Answering
|
422 |
-
description=
|
423 |
theme="default",
|
424 |
layout="vertical"
|
425 |
)
|
|
|
413 |
|
414 |
return f"{response[0]} \n\nSource: {response[1]}"
|
415 |
|
416 |
+
DESCRIPTION = """This tool is a demo for allowing you to ask questions over your case studies.
|
417 |
+
|
418 |
+
The case studies are from [Workable](https://resources.workable.com/tag/customer-stories/), a recruiting software company.
|
419 |
+
When you ask a question the tool will search for the most relevant case study to the question, and then use that to answer you"""
|
420 |
+
|
421 |
# Create a Gradio interface
|
422 |
iface = gr.Interface(
|
423 |
fn=get_answer,
|
424 |
inputs=["text", gr.inputs.Textbox(label="Password")],
|
425 |
outputs="text",
|
426 |
+
title="Glyphic Case Study Question Answering",
|
427 |
+
description=DESCRIPTION,
|
428 |
theme="default",
|
429 |
layout="vertical"
|
430 |
)
|