Upload folder using huggingface_hub
Browse files
demo.yaml
CHANGED
|
@@ -4,32 +4,31 @@ lite_metadata:
|
|
| 4 |
class_string: gradio.interface.Interface
|
| 5 |
kwargs:
|
| 6 |
title: gitio app
|
| 7 |
-
description:
|
| 8 |
article: null
|
| 9 |
thumbnail: null
|
| 10 |
theme: gradio/seafoam
|
| 11 |
css: null
|
| 12 |
allow_flagging: never
|
| 13 |
inputs:
|
| 14 |
-
- class_string: gradio.components.
|
| 15 |
kwargs:
|
| 16 |
-
label:
|
| 17 |
-
type: array
|
| 18 |
outputs:
|
| 19 |
-
- class_string: gradio.components.
|
| 20 |
kwargs:
|
| 21 |
label: output
|
| 22 |
-
type: array
|
| 23 |
fn:
|
| 24 |
class_string: gradify.gradify_closure
|
| 25 |
kwargs:
|
| 26 |
argmaps:
|
| 27 |
-
- label:
|
| 28 |
-
postprocessing:
|
| 29 |
func_kwargs: {}
|
| 30 |
ldict:
|
| 31 |
class_string: gradify.exec_to_dict
|
| 32 |
kwargs:
|
| 33 |
-
source: "def
|
| 34 |
-
\
|
| 35 |
-
\
|
|
|
|
|
|
| 4 |
class_string: gradio.interface.Interface
|
| 5 |
kwargs:
|
| 6 |
title: gitio app
|
| 7 |
+
description: Conversational assistant.
|
| 8 |
article: null
|
| 9 |
thumbnail: null
|
| 10 |
theme: gradio/seafoam
|
| 11 |
css: null
|
| 12 |
allow_flagging: never
|
| 13 |
inputs:
|
| 14 |
+
- class_string: gradio.components.Textbox
|
| 15 |
kwargs:
|
| 16 |
+
label: user_input
|
|
|
|
| 17 |
outputs:
|
| 18 |
+
- class_string: gradio.components.Textbox
|
| 19 |
kwargs:
|
| 20 |
label: output
|
|
|
|
| 21 |
fn:
|
| 22 |
class_string: gradify.gradify_closure
|
| 23 |
kwargs:
|
| 24 |
argmaps:
|
| 25 |
+
- label: user_input
|
| 26 |
+
postprocessing: null
|
| 27 |
func_kwargs: {}
|
| 28 |
ldict:
|
| 29 |
class_string: gradify.exec_to_dict
|
| 30 |
kwargs:
|
| 31 |
+
source: "def conversational_assistant(user_input):\n greetings = ['hi',\
|
| 32 |
+
\ 'hello', 'hey']\n if user_input.lower() in greetings:\n return\
|
| 33 |
+
\ 'Hello! How can I assist you today?'\n else:\n return \"I'm\
|
| 34 |
+
\ sorry, I didn't understand your request. Please try again.\"\n"
|