Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -346,20 +346,21 @@ with gr.Blocks(css="style.css") as demo:
|
|
| 346 |
outputs=seg_outputs,
|
| 347 |
)
|
| 348 |
with gr.Tab("Text Generation"):
|
| 349 |
-
with gr.
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
|
|
|
| 363 |
|
| 364 |
chat_inputs = [
|
| 365 |
image,
|
|
|
|
| 346 |
outputs=seg_outputs,
|
| 347 |
)
|
| 348 |
with gr.Tab("Text Generation"):
|
| 349 |
+
with gr.Row():
|
| 350 |
+
with gr.Column():
|
| 351 |
+
image = gr.Image(type="pil")
|
| 352 |
+
with gr.Column()
|
| 353 |
+
text_input = gr.Text(label="Input Text")
|
| 354 |
+
text_output = gr.Text(label="Text Output")
|
| 355 |
+
tokens = gr.Slider(
|
| 356 |
+
label="Max New Tokens",
|
| 357 |
+
info="Set to larger for longer generation.",
|
| 358 |
+
minimum=10,
|
| 359 |
+
maximum=100,
|
| 360 |
+
value=50,
|
| 361 |
+
step=10,
|
| 362 |
+
)
|
| 363 |
+
chat_btn = gr.Button()
|
| 364 |
|
| 365 |
chat_inputs = [
|
| 366 |
image,
|