Spaces:
Sleeping
Sleeping
MohammedNasser
commited on
Commit
•
ff73439
1
Parent(s):
8584c77
Update app.py
Browse files
app.py
CHANGED
@@ -240,12 +240,13 @@ with gr.Blocks(css=custom_css) as demo:
|
|
240 |
pdf_input = gr.File(label="اختر ملف PDF")
|
241 |
output_label = gr.HTML(value='') # Replaced Textbox with HTML for label
|
242 |
submit_button_pdf = gr.Button("ارفع الملف", interactive=False)
|
243 |
-
|
244 |
-
|
245 |
-
clear_btn = gr.Button("مسح", interactive=False )
|
246 |
chat_output = gr.Textbox(label="", rtl=True)
|
247 |
audio_output = gr.Audio(label="🔊", interactive=False)
|
248 |
-
|
|
|
|
|
249 |
|
250 |
def handle_file_upload(pdf):
|
251 |
output_label.value=''
|
|
|
240 |
pdf_input = gr.File(label="اختر ملف PDF")
|
241 |
output_label = gr.HTML(value='') # Replaced Textbox with HTML for label
|
242 |
submit_button_pdf = gr.Button("ارفع الملف", interactive=False)
|
243 |
+
|
244 |
+
chat_input = gr.Textbox(label="", rtl=True)
|
|
|
245 |
chat_output = gr.Textbox(label="", rtl=True)
|
246 |
audio_output = gr.Audio(label="🔊", interactive=False)
|
247 |
+
with gr.Group():
|
248 |
+
submit_button_chat = gr.Button("إرسال", interactive=False, size='lg')
|
249 |
+
clear_btn = gr.ClearButton("مسح", interactive=False, size='sm')
|
250 |
|
251 |
def handle_file_upload(pdf):
|
252 |
output_label.value=''
|