Update app.py
Browse files
app.py
CHANGED
@@ -11,21 +11,21 @@ def flip_image(x):
|
|
11 |
|
12 |
|
13 |
with gr.Blocks() as demo:
|
14 |
-
|
15 |
-
gr.Markdown("Choose text/image/audio mode for generation")
|
16 |
-
with gr.Tab("Text"):
|
17 |
-
text_input = gr.Textbox()
|
18 |
-
text_input_count = gr.Textbox()
|
19 |
-
text_output = gr.Textbox()
|
20 |
text_button = gr.Button("Generate Text")
|
21 |
-
|
|
|
22 |
with gr.Row():
|
23 |
image_input = gr.Image()
|
24 |
-
image_text_input = gr.Textbox()
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
with gr.Tab("Audio"):
|
29 |
audio_text_input = gr.Textbox()
|
30 |
audio_text_output = gr.Textbox()
|
31 |
audio_button = gr.Button("Generate Text")
|
|
|
11 |
|
12 |
|
13 |
with gr.Blocks() as demo:
|
14 |
+
gr.Title("TSAI-ERAV1 Capstone - Multimodal GPT")
|
15 |
+
gr.Markdown("Choose text mode/image mode/audio mode for generation")
|
16 |
+
with gr.Tab("Text mode"):
|
17 |
+
text_input = gr.Textbox(placeholder="Enter a prompt", label="Input")
|
18 |
+
text_input_count = gr.Textbox(placeholder="Enter number of characters you want to generate", label="Count")
|
|
|
19 |
text_button = gr.Button("Generate Text")
|
20 |
+
text_output = gr.Textbox(label="Chat GPT like text")
|
21 |
+
with gr.Tab("Image mode"):
|
22 |
with gr.Row():
|
23 |
image_input = gr.Image()
|
24 |
+
image_text_input = gr.Textbox(placeholder="Enter a question/prompt around the image", label="Question/Prompt")
|
25 |
+
image_button = gr.Button("Generate Text")
|
26 |
+
image_text_output = gr.Textbox(label="Answer")
|
27 |
+
|
28 |
+
with gr.Tab("Audio mode"):
|
29 |
audio_text_input = gr.Textbox()
|
30 |
audio_text_output = gr.Textbox()
|
31 |
audio_button = gr.Button("Generate Text")
|