Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -112,6 +112,7 @@ text_output = gr.Textbox(label="Output Answer")
|
|
112 |
demo = gr.Blocks(title=title)
|
113 |
demo.encrypt = False
|
114 |
cap_df = gr.DataFrame(value=df_init, label="Caption dataframe", row_count=(0, "dynamic"), max_rows = 20, wrap=True, overflow_row_behaviour='paginate')
|
|
|
115 |
system_info = gr.Markdown(f"*Memory: {memory.total / (1024 * 1024 * 1024):.2f}GB, used: {memory.percent}%, available: {memory.available / (1024 * 1024 * 1024):.2f}GB*")
|
116 |
|
117 |
with demo:
|
|
|
112 |
demo = gr.Blocks(title=title)
|
113 |
demo.encrypt = False
|
114 |
cap_df = gr.DataFrame(value=df_init, label="Caption dataframe", row_count=(0, "dynamic"), max_rows = 20, wrap=True, overflow_row_behaviour='paginate')
|
115 |
+
memory = psutil.virtual_memory()
|
116 |
system_info = gr.Markdown(f"*Memory: {memory.total / (1024 * 1024 * 1024):.2f}GB, used: {memory.percent}%, available: {memory.available / (1024 * 1024 * 1024):.2f}GB*")
|
117 |
|
118 |
with demo:
|