Spaces:
Running
Running
Commit
·
1c477ba
1
Parent(s):
4266de5
Add application files
Browse files
app.py
CHANGED
@@ -94,11 +94,14 @@ def greet(name1, name2):
|
|
94 |
# Define 5 text input boxes with labels
|
95 |
input_boxes = [
|
96 |
gr.inputs.Textbox(label="openai api key"),
|
97 |
-
gr.inputs.Textbox(lines=20,label="Input cencer report"),
|
98 |
]
|
99 |
|
100 |
# iface = gr.Interface(fn=greet, inputs=input_boxes, outputs="text")
|
101 |
-
iface = gr.Interface(fn=greet, inputs=input_boxes, outputs=gr.outputs.HTML(label="Output Table")
|
|
|
|
|
|
|
102 |
|
103 |
iface.launch()
|
104 |
|
|
|
94 |
# Define 5 text input boxes with labels
|
95 |
input_boxes = [
|
96 |
gr.inputs.Textbox(label="openai api key"),
|
97 |
+
gr.inputs.Textbox(lines=20, label="Input cencer report", placeholder='Type text here...'),
|
98 |
]
|
99 |
|
100 |
# iface = gr.Interface(fn=greet, inputs=input_boxes, outputs="text")
|
101 |
+
iface = gr.Interface(fn=greet, inputs=input_boxes, outputs=gr.outputs.HTML(label="Output Table"),examples=[ # Sample text examples
|
102 |
+
["this is a sample text"],
|
103 |
+
["gradio is great"]
|
104 |
+
])
|
105 |
|
106 |
iface.launch()
|
107 |
|