GunaKoppula commited on
Commit
b68136d
·
verified ·
1 Parent(s): 27eee09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -23
app.py CHANGED
@@ -67,12 +67,17 @@ def run(history, text, image, audio_upload, audio_mic):
67
  with gr.Blocks(theme='upsatwal/mlsc_tiet') as demo:
68
 
69
  with gr.Row() as title_row:
 
 
 
70
 
71
  with gr.Column(align="center"):
72
  # Add Markdown with centered text
73
  gr.Markdown("## MulitModal Phi2 Model Pretraining and Finetuning from Scratch")
74
- gr.Markdown("This is a multimodal implementation of [Phi2](https://huggingface.co/microsoft/phi-2) model. Please find the source code and training details [here](https://github.com/RaviNaik/ERA-CAPSTONE/MultiModalPhi2).")
75
 
 
 
76
 
77
  with gr.Row():
78
  chatbot = gr.Chatbot(
@@ -86,29 +91,29 @@ with gr.Blocks(theme='upsatwal/mlsc_tiet') as demo:
86
  # Creating a column with a scale of 6
87
  with gr.Box():
88
 
89
- # with gr.Column():
90
-
91
- with gr.Row():
92
- # Adding a Textbox with a placeholder "write prompt"
93
- prompt = gr.Textbox(
94
- placeholder="Enter Prompt", lines=2, label="Query", value=None
95
- )
96
- # Creating a column with a scale of 2
97
-
98
- with gr.Row():
99
- # Adding image
100
- image = gr.Image(type="filepath", value=None)
101
- # Creating a column with a scale of 2
102
- with gr.Row():
103
- # Add audio
104
- audio_upload = gr.Audio(source="upload", type="filepath")
105
- audio_mic = gr.Microphone(source="microphone", type="filepath", format="mp3")
106
 
107
- # Adding a Button
108
- with gr.Row():
109
- submit = gr.Button()
110
- with gr.Row():
111
- clear = gr.Button(value="Clear")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  submit.click(
114
  add_content,
 
67
  with gr.Blocks(theme='upsatwal/mlsc_tiet') as demo:
68
 
69
  with gr.Row() as title_row:
70
+
71
+ with gr.Column():
72
+ gr.Markdown("## MulitModal Phi2 Model Pretraining and Finetuning from Scratch")
73
 
74
  with gr.Column(align="center"):
75
  # Add Markdown with centered text
76
  gr.Markdown("## MulitModal Phi2 Model Pretraining and Finetuning from Scratch")
77
+ gr.Markdown("This is a multimodal implementation of [Phi2](https://huggingface.co/microsoft/phi-2) model. Please find the source code and training details [here](https://github.com/GunaKoppula/ERAV1-CAPSTONE).")
78
 
79
+ with gr.Column():
80
+ gr.Markdown("## MulitModal Phi2 Model Pretraining and Finetuning from Scratch")
81
 
82
  with gr.Row():
83
  chatbot = gr.Chatbot(
 
91
  # Creating a column with a scale of 6
92
  with gr.Box():
93
 
94
+ with gr.Column():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
+ with gr.Row():
97
+ # Adding a Textbox with a placeholder "write prompt"
98
+ prompt = gr.Textbox(
99
+ placeholder="Enter Prompt", lines=2, label="Query", value=None
100
+ )
101
+ # Creating a column with a scale of 2
102
+
103
+ with gr.Row():
104
+ # Adding image
105
+ image = gr.Image(type="filepath", value=None)
106
+ # Creating a column with a scale of 2
107
+ with gr.Row():
108
+ # Add audio
109
+ audio_upload = gr.Audio(source="upload", type="filepath")
110
+ audio_mic = gr.Microphone(source="microphone", type="filepath", format="mp3")
111
+
112
+ # Adding a Button
113
+ with gr.Row():
114
+ submit = gr.Button()
115
+ with gr.Row():
116
+ clear = gr.Button(value="Clear")
117
 
118
  submit.click(
119
  add_content,