Spaces:
Runtime error
Runtime error
NoNeuronsNoStress
commited on
Commit
•
5eb6ec1
1
Parent(s):
4a07619
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,9 @@ def my_inference_function(text,key: str):
|
|
13 |
|
14 |
gradio_interface = gradio.Interface(
|
15 |
fn = my_inference_function,
|
16 |
-
inputs =
|
|
|
|
|
17 |
outputs = "text"
|
18 |
)
|
19 |
gradio_interface.launch()
|
|
|
13 |
|
14 |
gradio_interface = gradio.Interface(
|
15 |
fn = my_inference_function,
|
16 |
+
inputs =[gr.Textbox(
|
17 |
+
label="prompt", placeholder="What is the capital of France"),
|
18 |
+
gr.Textbox(label="key")],
|
19 |
outputs = "text"
|
20 |
)
|
21 |
gradio_interface.launch()
|