Spaces:
Runtime error
Runtime error
shishirpatil
commited on
Commit
•
885a8c4
1
Parent(s):
b46baae
More variety in examples
Browse files
app.py
CHANGED
@@ -87,15 +87,15 @@ def parse_and_display(prompt, model):
|
|
87 |
|
88 |
# Define example prompts
|
89 |
examples = [
|
90 |
-
["I would like to translate 'I feel very good today.' from English to
|
|
|
91 |
["I would like to translate from English to Chinese.","gorilla-7b-th-v0"],
|
92 |
-
["I would like to translate from English to German.","gorilla-mpt-7b-hf-v0"]
|
93 |
]
|
94 |
|
95 |
# Create the Gradio interface
|
96 |
iface = gr.Interface(
|
97 |
fn=parse_and_display,
|
98 |
-
inputs=["text", gr.components.Dropdown(["gorilla-7b-hf-v1", "gorilla-
|
99 |
outputs=[
|
100 |
gr.components.Textbox(label="Domain"),
|
101 |
gr.components.Textbox(label="API Call"),
|
|
|
87 |
|
88 |
# Define example prompts
|
89 |
examples = [
|
90 |
+
["I would like to translate 'I feel very good today.' from English to French.","gorilla-7b-hf-v1"],
|
91 |
+
["I want to build a robot that can detecting objects in an image ‘cat.jpeg’. Input: [‘cat.jpeg’]","gorilla-7b-hf-v1"],
|
92 |
["I would like to translate from English to Chinese.","gorilla-7b-th-v0"],
|
|
|
93 |
]
|
94 |
|
95 |
# Create the Gradio interface
|
96 |
iface = gr.Interface(
|
97 |
fn=parse_and_display,
|
98 |
+
inputs=["text", gr.components.Dropdown(["gorilla-7b-hf-v1", "gorilla-7b-th-v0", "gorilla-7b-tf-v0", "gorilla-mpt-7b-hf-v0"], label="Model")],
|
99 |
outputs=[
|
100 |
gr.components.Textbox(label="Domain"),
|
101 |
gr.components.Textbox(label="API Call"),
|