Spaces:
Running
Running
Obviously cant serve an image if image folder is empty. For sure it did not take me 30 min to figure
Browse files- app.py +4 -4
- static/logo.png +0 -0
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from typing import Tuple, List
|
3 |
import requests
|
4 |
-
|
5 |
|
6 |
url = "http://138.4.22.130/arena"
|
7 |
|
@@ -108,7 +108,6 @@ with gr.Blocks(css="footer{display:none !important}") as demo:
|
|
108 |
|
109 |
""")
|
110 |
with gr.Column(visible=False) as app:
|
111 |
-
gr.set_static_paths(paths=["static"])
|
112 |
buttons = [None] * 2 # Initialize the list with None elements
|
113 |
with gr.Group():
|
114 |
gr.Image("static/logo.png", elem_id="centered", show_label=False)
|
@@ -123,7 +122,7 @@ with gr.Blocks(css="footer{display:none !important}") as demo:
|
|
123 |
show_label=False, # You can set this to False to hide the label
|
124 |
type="messages",
|
125 |
elem_id="chatbot",
|
126 |
-
height=
|
127 |
show_copy_button=True,
|
128 |
latex_delimiters=[
|
129 |
{"left": "$", "right": "$", "display": False},
|
@@ -242,5 +241,6 @@ Este space es parte de un proyecto de investigaci贸n para estudiar c贸mo el cono
|
|
242 |
)
|
243 |
|
244 |
if __name__ == "__main__":
|
245 |
-
|
|
|
246 |
|
|
|
1 |
import gradio as gr
|
2 |
from typing import Tuple, List
|
3 |
import requests
|
4 |
+
import os
|
5 |
|
6 |
url = "http://138.4.22.130/arena"
|
7 |
|
|
|
108 |
|
109 |
""")
|
110 |
with gr.Column(visible=False) as app:
|
|
|
111 |
buttons = [None] * 2 # Initialize the list with None elements
|
112 |
with gr.Group():
|
113 |
gr.Image("static/logo.png", elem_id="centered", show_label=False)
|
|
|
122 |
show_label=False, # You can set this to False to hide the label
|
123 |
type="messages",
|
124 |
elem_id="chatbot",
|
125 |
+
height=400,
|
126 |
show_copy_button=True,
|
127 |
latex_delimiters=[
|
128 |
{"left": "$", "right": "$", "display": False},
|
|
|
241 |
)
|
242 |
|
243 |
if __name__ == "__main__":
|
244 |
+
gr.set_static_paths(paths=[os.path.join(os.path.dirname(__file__), "static")])
|
245 |
+
demo.launch(show_api=False, share=True)
|
246 |
|
static/logo.png
ADDED
![]() |