GunaKoppula commited on
Commit
1cf7891
Β·
verified Β·
1 Parent(s): 7026d54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -30
app.py CHANGED
@@ -77,41 +77,41 @@ with gr.Blocks() as demo:
77
  6. Finetuned Model: [GunaKoppula/Llava-Phi2](https://huggingface.co/GunaKoppula/Llava-Phi2)
78
  """
79
  )
80
-
81
- with gr.Row(scale=8):
82
- with gr.Box():
83
- with gr.Row():
84
- chatbot = gr.Chatbot(
85
- avatar_images=("πŸ§‘", "πŸ€–"),
86
- height=550,
87
- )
88
-
89
- with gr.Row():
90
- with gr.Column(scale=4):
91
- # Creating a column with a scale of 6
92
  with gr.Box():
93
  with gr.Row():
94
- # Adding a Textbox with a placeholder "write prompt"
95
- prompt = gr.Textbox(
96
- placeholder="Enter Prompt", lines=2, label="Query", value=None
97
  )
98
- # Creating a column with a scale of 2
99
-
100
- with gr.Column():
101
- with gr.Column():
102
- # Adding image
103
- image = gr.Image(type="filepath", value=None)
 
 
 
 
104
  # Creating a column with a scale of 2
 
105
  with gr.Column():
106
- # Add audio
107
- # audio_upload = gr.Audio(source="upload", type="filepath")
108
- # audio_mic = gr.Audio(source="microphone", type="filepath", format="mp3")
109
- audio_upload = gr.Audio(label="Upload Audio", type="filepath", interactive=True)
110
-
111
- with gr.Row():
112
- # Adding a Button
113
- submit = gr.Button()
114
- clear = gr.Button(value="Clear")
 
 
 
 
 
115
 
116
  submit.click(
117
  add_content,
 
77
  6. Finetuned Model: [GunaKoppula/Llava-Phi2](https://huggingface.co/GunaKoppula/Llava-Phi2)
78
  """
79
  )
80
+ with gr.Column():
81
+ with gr.Row(scale=8):
 
 
 
 
 
 
 
 
 
 
82
  with gr.Box():
83
  with gr.Row():
84
+ chatbot = gr.Chatbot(
85
+ avatar_images=("πŸ§‘", "πŸ€–"),
86
+ height=550,
87
  )
88
+
89
+ with gr.Row():
90
+ with gr.Column(scale=4):
91
+ # Creating a column with a scale of 6
92
+ with gr.Box():
93
+ with gr.Row():
94
+ # Adding a Textbox with a placeholder "write prompt"
95
+ prompt = gr.Textbox(
96
+ placeholder="Enter Prompt", lines=2, label="Query", value=None
97
+ )
98
  # Creating a column with a scale of 2
99
+
100
  with gr.Column():
101
+ with gr.Column():
102
+ # Adding image
103
+ image = gr.Image(type="filepath", value=None)
104
+ # Creating a column with a scale of 2
105
+ with gr.Column():
106
+ # Add audio
107
+ # audio_upload = gr.Audio(source="upload", type="filepath")
108
+ # audio_mic = gr.Audio(source="microphone", type="filepath", format="mp3")
109
+ audio_upload = gr.Audio(label="Upload Audio", type="filepath", interactive=True)
110
+
111
+ with gr.Row():
112
+ # Adding a Button
113
+ submit = gr.Button()
114
+ clear = gr.Button(value="Clear")
115
 
116
  submit.click(
117
  add_content,