Spaces:
Build error
Build error
Commit ·
4eec1e4
1
Parent(s): aa69369
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,15 +38,13 @@ def article_or_concept(input_type, article_data,concept_data):
|
|
| 38 |
|
| 39 |
article_url_input = gr.inputs.Textbox(label="Enter article URL:")
|
| 40 |
concept_input = gr.inputs.Textbox(label="Enter a concept:")
|
| 41 |
-
|
| 42 |
-
['https://www.technologyreview.com/2021/07/21/1029860/disability-rights-employment-discrimination-ai-hiring/'],
|
| 43 |
-
['https://www.technologyreview.com/2021/07/09/1028140/ai-voice-actors-sound-human/']]
|
| 44 |
|
| 45 |
input_type = gr.inputs.Dropdown(choices=["Article", "Concept"], label="Select input type:")
|
| 46 |
|
| 47 |
output_text = gr.outputs.Textbox(label="Explanation:")
|
| 48 |
|
| 49 |
-
interface = gr.Interface(fn=article_or_concept, inputs=[input_type, article_url_input, concept_input], outputs=output_text,
|
| 50 |
theme = 'huggingface',
|
| 51 |
description="Input either a ML article URL or a concept to receive an explanation that even a grandmother can understand.")
|
| 52 |
|
|
|
|
| 38 |
|
| 39 |
article_url_input = gr.inputs.Textbox(label="Enter article URL:")
|
| 40 |
concept_input = gr.inputs.Textbox(label="Enter a concept:")
|
| 41 |
+
|
|
|
|
|
|
|
| 42 |
|
| 43 |
input_type = gr.inputs.Dropdown(choices=["Article", "Concept"], label="Select input type:")
|
| 44 |
|
| 45 |
output_text = gr.outputs.Textbox(label="Explanation:")
|
| 46 |
|
| 47 |
+
interface = gr.Interface(fn=article_or_concept, inputs=[input_type, article_url_input, concept_input], outputs=output_text, title="Machine Learning Granny",
|
| 48 |
theme = 'huggingface',
|
| 49 |
description="Input either a ML article URL or a concept to receive an explanation that even a grandmother can understand.")
|
| 50 |
|