Spaces:
Runtime error
Runtime error
Commit
·
ddea92b
1
Parent(s):
c0824ac
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,14 +2,23 @@ import gradio as gr
|
|
| 2 |
import gradio
|
| 3 |
|
| 4 |
from app_cn import demo as demo_cn
|
|
|
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
demo = gr.TabbedInterface(
|
| 8 |
[
|
| 9 |
demo_cn,
|
|
|
|
| 10 |
], [
|
| 11 |
"中文版",
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
if __name__ == "__main__":
|
| 15 |
demo.queue(concurrency_count=200).launch()
|
|
|
|
| 2 |
import gradio
|
| 3 |
|
| 4 |
from app_cn import demo as demo_cn
|
| 5 |
+
from app_en import demo as demo_en
|
| 6 |
|
| 7 |
+
css = """
|
| 8 |
+
.table-wrap .cell-wrap input {min-width:80%}
|
| 9 |
+
#api-key-textbox textarea {filter:blur(8px); transition: filter 0.25s}
|
| 10 |
+
#api-key-textbox textarea:focus {filter:none}
|
| 11 |
+
#chat-log-md hr {margin-top: 1rem; margin-bottom: 1rem;}
|
| 12 |
+
#chat-markdown-wrap-box {max-height:80vh; overflow: auto !important;}
|
| 13 |
+
"""
|
| 14 |
demo = gr.TabbedInterface(
|
| 15 |
[
|
| 16 |
demo_cn,
|
| 17 |
+
demo_en,
|
| 18 |
], [
|
| 19 |
"中文版",
|
| 20 |
+
"English",
|
| 21 |
+
], css=css)
|
| 22 |
|
| 23 |
if __name__ == "__main__":
|
| 24 |
demo.queue(concurrency_count=200).launch()
|