brunhild217 commited on
Commit
67283e0
·
1 Parent(s): cddb36c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -87,8 +87,11 @@ with gr.Blocks() as demo:
87
  export_dialogue_button_csv.click(save_csv, study_tutor, file_download, show_progress=True)
88
 
89
  with gr.Tab("Instructor Only"):
90
- file_input = gr.Files(label="Load a .txt or .pdf file",
91
- file_types=['.pdf', '.txt'], type="file",
 
92
  elem_classes="short-height")
 
 
93
 
94
  demo.queue().launch(server_name='0.0.0.0', server_port=7860)
 
87
  export_dialogue_button_csv.click(save_csv, study_tutor, file_download, show_progress=True)
88
 
89
  with gr.Tab("Instructor Only"):
90
+ with gr.Blocks():
91
+ file_output = gr.File(label="Load a .txt or .py file",
92
+ file_types=['.py', '.txt'], type="file",
93
  elem_classes="short-height")
94
+ upload_button = gr.UploadButton("Click to Upload a File", file_types=[".txt", ".py"], file_count="multiple")
95
+ #upload_button.upload(upload_file, upload_button, file_output)
96
 
97
  demo.queue().launch(server_name='0.0.0.0', server_port=7860)