Navyabhat commited on
Commit
575045b
β€’
1 Parent(s): b2a47bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -19
app.py CHANGED
@@ -67,30 +67,37 @@ with gr.Blocks(theme=theme) as demo:
67
  gr.Markdown("This is a multi-modal LLM that takes text, image and audio as inputs.")
68
 
69
  with gr.Row():
70
- with gr.Column(scale=4):
71
 
72
- with gr.Box():
73
- with gr.Row():
74
- # Adding image
75
- image = gr.Image(type="filepath", value=None)
76
 
77
- with gr.Row():
78
- # Add audio
79
- audio_upload = gr.Audio(source="upload", type="filepath")
80
- audio_mic = gr.Audio(
81
- source="microphone", type="filepath", format="mp3"
82
- )
83
-
84
- with gr.Column(scale=8):
85
- with gr.Box():
86
- with gr.Row():
87
- chatbot = gr.Chatbot(
88
- avatar_images=("πŸ§‘", "πŸ€–"),
89
- height=560,
90
- )
91
 
92
  with gr.Row():
 
 
 
 
 
 
93
 
 
94
  prompt = gr.Textbox(
95
  placeholder="Ask anything", lines=2, label="Query", value=None, scale=4
96
  )
 
67
  gr.Markdown("This is a multi-modal LLM that takes text, image and audio as inputs.")
68
 
69
  with gr.Row():
70
+ # with gr.Column(scale=4):
71
 
72
+ # with gr.Box():
73
+ # with gr.Row():
74
+ # # Adding image
75
+ # image = gr.Image(type="filepath", value=None)
76
 
77
+ # # with gr.Row():
78
+ # # Add audio
79
+ # audio_upload = gr.Audio(source="upload", type="filepath")
80
+ # audio_mic = gr.Audio(
81
+ # source="microphone", type="filepath", format="mp3"
82
+ # )
83
+
84
+ # with gr.Column(scale=8):
85
+ # with gr.Box():
86
+ # with gr.Row():
87
+ chatbot = gr.Chatbot(
88
+ avatar_images=("πŸ§‘", "πŸ€–"),
89
+ height=560,
90
+ )
91
 
92
  with gr.Row():
93
+ image = gr.Image(type="filepath", value=None)
94
+
95
+ audio_upload = gr.Audio(source="upload", type="filepath")
96
+ audio_mic = gr.Audio(
97
+ source="microphone", type="filepath", format="mp3"
98
+ )
99
 
100
+ with gr.Row():
101
  prompt = gr.Textbox(
102
  placeholder="Ask anything", lines=2, label="Query", value=None, scale=4
103
  )