Spaces:
Running
on
Zero
Running
on
Zero
OpenSourceRonin
commited on
Commit
•
81f7d00
1
Parent(s):
746ca46
disable plot
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def get_gpu_info():
|
|
54 |
return gpu_info
|
55 |
|
56 |
|
57 |
-
def
|
58 |
"""
|
59 |
Update the GPU utilization and memory usage charts.
|
60 |
|
@@ -202,12 +202,10 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
202 |
"""
|
203 |
# enable_gpu_info()
|
204 |
with gr.Blocks(fill_height=True) as demo:
|
205 |
-
with gr.Row():
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
gpu_chart = gr.Plot(update_chart, every=0.1) # update every 0.1 seconds
|
211 |
|
212 |
with gr.Column():
|
213 |
chat_interface = gr.ChatInterface(
|
|
|
54 |
return gpu_info
|
55 |
|
56 |
|
57 |
+
def _update_charts(chart_height: int = 200) -> go.Figure:
|
58 |
"""
|
59 |
Update the GPU utilization and memory usage charts.
|
60 |
|
|
|
202 |
"""
|
203 |
# enable_gpu_info()
|
204 |
with gr.Blocks(fill_height=True) as demo:
|
205 |
+
# with gr.Row():
|
206 |
+
# def update_chart():
|
207 |
+
# return _update_charts(chart_height=200)
|
208 |
+
# gpu_chart = gr.Plot(update_chart, every=0.1) # update every 0.1 seconds
|
|
|
|
|
209 |
|
210 |
with gr.Column():
|
211 |
chat_interface = gr.ChatInterface(
|