Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -203,6 +203,16 @@ MODEL_TITLE = """
|
|
| 203 |
justify-content: center;
|
| 204 |
display: flex;
|
| 205 |
">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
<div class="text" style="
|
| 207 |
padding-left: 20px;
|
| 208 |
padding-top: 1%;
|
|
@@ -1706,7 +1716,7 @@ CHAT_EXAMPLES = [
|
|
| 1706 |
# performance items
|
| 1707 |
|
| 1708 |
|
| 1709 |
-
def
|
| 1710 |
global demo, llm, DEBUG, LOG_FILE
|
| 1711 |
model_desc = MODEL_DESC
|
| 1712 |
model_path = MODEL_PATH
|
|
@@ -1882,7 +1892,8 @@ def launch():
|
|
| 1882 |
demo.load(None, None, None, _js=AGREE_POP_SCRIPTS)
|
| 1883 |
|
| 1884 |
demo.queue(api_open=False)
|
| 1885 |
-
demo.launch(server_port=PORT, show_api=False)
|
|
|
|
| 1886 |
else:
|
| 1887 |
descriptions = model_desc
|
| 1888 |
if DISPLAY_MODEL_PATH:
|
|
@@ -1927,7 +1938,9 @@ def launch():
|
|
| 1927 |
|
| 1928 |
|
| 1929 |
demo.queue(api_open=False)
|
| 1930 |
-
demo.launch(server_port=PORT, show_api=False, allowed_paths=["seal_logo.png"])
|
|
|
|
|
|
|
| 1931 |
|
| 1932 |
|
| 1933 |
# def main():
|
|
@@ -1936,4 +1949,5 @@ def launch():
|
|
| 1936 |
|
| 1937 |
|
| 1938 |
if __name__ == "__main__":
|
| 1939 |
-
launch()
|
|
|
|
|
|
| 203 |
justify-content: center;
|
| 204 |
display: flex;
|
| 205 |
">
|
| 206 |
+
<div class="image" >
|
| 207 |
+
<img src="file/seal_logo.png" style="
|
| 208 |
+
max-width: 10em;
|
| 209 |
+
max-height: 5%;
|
| 210 |
+
height: 3em;
|
| 211 |
+
width: 3em;
|
| 212 |
+
float: left;
|
| 213 |
+
margin-left: auto;
|
| 214 |
+
">
|
| 215 |
+
</div>
|
| 216 |
<div class="text" style="
|
| 217 |
padding-left: 20px;
|
| 218 |
padding-top: 1%;
|
|
|
|
| 1716 |
# performance items
|
| 1717 |
|
| 1718 |
|
| 1719 |
+
def launch_demo():
|
| 1720 |
global demo, llm, DEBUG, LOG_FILE
|
| 1721 |
model_desc = MODEL_DESC
|
| 1722 |
model_path = MODEL_PATH
|
|
|
|
| 1892 |
demo.load(None, None, None, _js=AGREE_POP_SCRIPTS)
|
| 1893 |
|
| 1894 |
demo.queue(api_open=False)
|
| 1895 |
+
# demo.launch(server_port=PORT, show_api=False, allowed_paths=["seal_logo.png"])
|
| 1896 |
+
# demo.launch(show_api=False, allowed_paths=["seal_logo.png"])
|
| 1897 |
else:
|
| 1898 |
descriptions = model_desc
|
| 1899 |
if DISPLAY_MODEL_PATH:
|
|
|
|
| 1938 |
|
| 1939 |
|
| 1940 |
demo.queue(api_open=False)
|
| 1941 |
+
#demo.launch(server_port=PORT, show_api=False, allowed_paths=["seal_logo.png"])
|
| 1942 |
+
# demo.launch(show_api=False, allowed_paths=["seal_logo.png"])
|
| 1943 |
+
return demo
|
| 1944 |
|
| 1945 |
|
| 1946 |
# def main():
|
|
|
|
| 1949 |
|
| 1950 |
|
| 1951 |
if __name__ == "__main__":
|
| 1952 |
+
demo = launch()
|
| 1953 |
+
demo.launch(show_api=False, allowed_paths=["seal_logo.png"])
|