ToletiSri commited on
Commit
7fdeb55
1 Parent(s): 9530736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -11,21 +11,21 @@ def flip_image(x):
11
 
12
 
13
  with gr.Blocks() as demo:
14
- #gr.Title("TSAI-ERAV1 Capstone - Multimodal GPT")
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
- with gr.Tab("Image"):
 
22
  with gr.Row():
23
  image_input = gr.Image()
24
- image_text_input = gr.Textbox()
25
- image_text_input_count = gr.Textbox()
26
- image_text_output = gr.Textbox()
27
- image_button = gr.Button("Generate Text")
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")