jerome-white commited on
Commit
a5aec38
·
1 Parent(s): 40a1ce9

Add instructions to website

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import os
2
  import json
3
  import collections as cl
 
4
 
5
  import gradio as gr
6
  from openai import OpenAI
@@ -59,7 +60,13 @@ with gr.Blocks() as demo:
59
  value=load,
60
  delete_callback=eject,
61
  )
 
 
 
 
 
62
  with gr.Row():
 
63
  with gr.Column():
64
  data = gr.UploadButton(
65
  label='Select and upload your files',
 
1
  import os
2
  import json
3
  import collections as cl
4
+ from pathlib import Path
5
 
6
  import gradio as gr
7
  from openai import OpenAI
 
60
  value=load,
61
  delete_callback=eject,
62
  )
63
+ howto = Path('static/howto').with_suffix('.md')
64
+
65
+ with gr.Row():
66
+ with gr.Accordion(label='Instructions', open=False):
67
+ gr.Markdown(howto.read_text())
68
  with gr.Row():
69
+
70
  with gr.Column():
71
  data = gr.UploadButton(
72
  label='Select and upload your files',