rtl issue
Browse files
app.py
CHANGED
@@ -215,6 +215,7 @@ def get_model_info_blocks(chosen_model_name):
|
|
215 |
##strip style and script tags from html
|
216 |
html_file_content = re.sub('<style.*?>.*?</style>', '', html_file_content, flags=re.DOTALL)
|
217 |
html_file_content = re.sub('<script.*?>.*?</script>', '', html_file_content, flags=re.DOTALL)
|
|
|
218 |
|
219 |
answers_html = gr.HTML(html_file_content,max_height=500,show_label=True,
|
220 |
label="Model Responses", container=True, elem_classes="model_responses_container")
|
|
|
215 |
##strip style and script tags from html
|
216 |
html_file_content = re.sub('<style.*?>.*?</style>', '', html_file_content, flags=re.DOTALL)
|
217 |
html_file_content = re.sub('<script.*?>.*?</script>', '', html_file_content, flags=re.DOTALL)
|
218 |
+
html_file_content = html_file_content.replace('<html lang="ar" dir="rtl">','<html>')
|
219 |
|
220 |
answers_html = gr.HTML(html_file_content,max_height=500,show_label=True,
|
221 |
label="Model Responses", container=True, elem_classes="model_responses_container")
|