Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
from evaluate import eval
|
3 |
from datetime import datetime
|
4 |
import os, shutil, spaces
|
5 |
import warnings, tempfile
|
@@ -108,6 +108,7 @@ def cleanup_temp_dir(tmp_dir):
|
|
108 |
return "临时目录已清理"
|
109 |
return "没有临时目录需要清理"
|
110 |
|
|
|
111 |
font = ["Heiti SC", "FangSong"]
|
112 |
title = """<h1 style="text-align: center;">
|
113 |
<div style="width: 1.4em; height: 1.4em; display: inline-block;"><img src="https://github.com/ZiyuGuo99/ZiyuGuo99.github.io/blob/main/assets/img/sl.png?raw=true" style='width: 100%; height: 100%; object-fit: contain;' /></div>
|
@@ -167,5 +168,4 @@ with gr.Blocks(
|
|
167 |
outputs=None
|
168 |
)
|
169 |
|
170 |
-
app.launch(share=True)
|
171 |
-
|
|
|
1 |
import gradio as gr
|
2 |
+
from evaluate import eval, install
|
3 |
from datetime import datetime
|
4 |
import os, shutil, spaces
|
5 |
import warnings, tempfile
|
|
|
108 |
return "临时目录已清理"
|
109 |
return "没有临时目录需要清理"
|
110 |
|
111 |
+
install()
|
112 |
font = ["Heiti SC", "FangSong"]
|
113 |
title = """<h1 style="text-align: center;">
|
114 |
<div style="width: 1.4em; height: 1.4em; display: inline-block;"><img src="https://github.com/ZiyuGuo99/ZiyuGuo99.github.io/blob/main/assets/img/sl.png?raw=true" style='width: 100%; height: 100%; object-fit: contain;' /></div>
|
|
|
168 |
outputs=None
|
169 |
)
|
170 |
|
171 |
+
app.launch(share=True)
|
|