oobabooga 2 лет назад
Родитель
Сommit
32f40f3b42
2 измененных файлов с 9 добавлено и 4 удалено
  1. 8 3
      modules/ui.py
  2. 1 1
      requirements.txt

+ 8 - 3
modules/ui.py

@@ -27,6 +27,7 @@ css = """
 }
 }
 #accordion {
 #accordion {
 }
 }
+/*
 .dark svg {
 .dark svg {
   fill: white;
   fill: white;
 }
 }
@@ -35,6 +36,10 @@ svg {
   vertical-align: middle !important;
   vertical-align: middle !important;
   margin: 5px;
   margin: 5px;
 }
 }
+*/
+ol li p, ul li p {
+    display: inline-block;
+}
 """
 """
 
 
 chat_css = """
 chat_css = """
@@ -42,9 +47,9 @@ chat_css = """
     height: 66.67vh
     height: 66.67vh
 }
 }
 .gradio-container {
 .gradio-container {
-    max-width: 800px;
-     margin-left: auto;
-     margin-right: auto
+    max-width: 800px !important;
+    margin-left: auto !important;
+    margin-right: auto !important;
 }
 }
 .w-screen {
 .w-screen {
     width: unset
     width: unset

+ 1 - 1
requirements.txt

@@ -1,6 +1,6 @@
 accelerate==0.16.0
 accelerate==0.16.0
 bitsandbytes==0.37.0
 bitsandbytes==0.37.0
-gradio==3.18.0
+gradio==3.19.1
 numpy
 numpy
 safetensors==0.2.8
 safetensors==0.2.8
 git+https://github.com/huggingface/transformers
 git+https://github.com/huggingface/transformers