Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,26 +63,6 @@ def run(history, text, image, audio_upload, audio_mic):
|
|
| 63 |
with gr.Blocks() as demo:
|
| 64 |
gr.Markdown("## MulitModal Phi2 Model Pretraining and Finetuning from Scratch")
|
| 65 |
|
| 66 |
-
with gr.Row():
|
| 67 |
-
with gr.Column(scale=4):
|
| 68 |
-
# Creating a column with a scale of 6
|
| 69 |
-
with gr.Box():
|
| 70 |
-
with gr.Row():
|
| 71 |
-
# Adding a Textbox with a placeholder "write prompt"
|
| 72 |
-
prompt = gr.Textbox(
|
| 73 |
-
placeholder="Enter Prompt", lines=2, label="Query", value=None
|
| 74 |
-
)
|
| 75 |
-
# Creating a column with a scale of 2
|
| 76 |
-
with gr.Row():
|
| 77 |
-
# Adding image
|
| 78 |
-
image, audio_upload= gr.UploadButton("📁", file_types=["image", "audio"])
|
| 79 |
-
# Creating a column with a scale of 2
|
| 80 |
-
with gr.Row():
|
| 81 |
-
# Add audio
|
| 82 |
-
audio_mic = gr.Audio(
|
| 83 |
-
source="microphone", type="filepath", format="mp3"
|
| 84 |
-
)
|
| 85 |
-
|
| 86 |
with gr.Column(scale=8):
|
| 87 |
with gr.Box():
|
| 88 |
with gr.Row():
|
|
@@ -100,7 +80,8 @@ with gr.Blocks() as demo:
|
|
| 100 |
# Creating a column with a scale of 2
|
| 101 |
# with gr.Row():
|
| 102 |
# Adding image
|
| 103 |
-
image
|
|
|
|
| 104 |
# Creating a column with a scale of 2
|
| 105 |
# with gr.Row():
|
| 106 |
# Add audio
|
|
|
|
| 63 |
with gr.Blocks() as demo:
|
| 64 |
gr.Markdown("## MulitModal Phi2 Model Pretraining and Finetuning from Scratch")
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
with gr.Column(scale=8):
|
| 67 |
with gr.Box():
|
| 68 |
with gr.Row():
|
|
|
|
| 80 |
# Creating a column with a scale of 2
|
| 81 |
# with gr.Row():
|
| 82 |
# Adding image
|
| 83 |
+
image= gr.UploadButton("📁", file_types=["image", "audio"])
|
| 84 |
+
audio_upload= gr.UploadButton("📁", file_types=["image", "audio"])
|
| 85 |
# Creating a column with a scale of 2
|
| 86 |
# with gr.Row():
|
| 87 |
# Add audio
|