Spaces:
Sleeping
Sleeping
Commit
·
e783551
1
Parent(s):
9bf1fe7
init
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ examples = [
|
|
15 |
]
|
16 |
|
17 |
# Load interfaces for different models
|
18 |
-
io1 = gr.Interface.load("huggingface/SteelBERT")
|
19 |
io2 = gr.Interface.load("huggingface/bert-base-uncased")
|
20 |
|
21 |
def inference(inputtext, model):
|
@@ -29,9 +29,9 @@ gr.Interface(
|
|
29 |
fn=inference,
|
30 |
inputs=[
|
31 |
gr.Textbox(label="Context", lines=10),
|
32 |
-
gr.Dropdown(choices=["SteelBERT", "bert-base-uncased"],
|
33 |
],
|
34 |
-
outputs=gr.
|
35 |
examples=examples,
|
36 |
title=title,
|
37 |
description=description
|
|
|
15 |
]
|
16 |
|
17 |
# Load interfaces for different models
|
18 |
+
io1 = gr.Interface.load("huggingface/MGE-LLMs/SteelBERT")
|
19 |
io2 = gr.Interface.load("huggingface/bert-base-uncased")
|
20 |
|
21 |
def inference(inputtext, model):
|
|
|
29 |
fn=inference,
|
30 |
inputs=[
|
31 |
gr.Textbox(label="Context", lines=10),
|
32 |
+
gr.Dropdown(choices=["SteelBERT", "bert-base-uncased"], value="SteelBERT", label="Model")
|
33 |
],
|
34 |
+
outputs=gr.Textbox(label="Output"),
|
35 |
examples=examples,
|
36 |
title=title,
|
37 |
description=description
|