Spaces:
Runtime error
Runtime error
dev(hus):test persistent storage function
Browse files
app.py
CHANGED
|
@@ -119,6 +119,11 @@ def _get_api_key_cfgs(api_key):
|
|
| 119 |
|
| 120 |
|
| 121 |
if __name__ == '__main__':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
with gr.Blocks(title=title, theme='ParityError/Interstellar') as demo:
|
| 123 |
gr.Markdown(title_markdown)
|
| 124 |
|
|
|
|
| 119 |
|
| 120 |
|
| 121 |
if __name__ == '__main__':
|
| 122 |
+
with open('/data/test.log','w') as f:
|
| 123 |
+
f.write("test log")
|
| 124 |
+
with open('/data/test.log','r') as f:
|
| 125 |
+
content = f.read()
|
| 126 |
+
print(content)
|
| 127 |
with gr.Blocks(title=title, theme='ParityError/Interstellar') as demo:
|
| 128 |
gr.Markdown(title_markdown)
|
| 129 |
|