brunhild217 commited on
Commit
f0551f2
·
1 Parent(s): 46f0e4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -102,7 +102,7 @@ with gr.Blocks() as demo:
102
  file_types=['.py', '.txt'], type="file",
103
  elem_classes="short-height")
104
  instructor_prompt = gr.Textbox(visible=True)
105
- file_input.submit(get_instructor_prompt, file_input, instructor_prompt)
106
 
107
  #gr.Interface(get_instructor_prompt, file_input, instructor_prompt)
108
  #test = gr.Textbox(label="testing")
 
102
  file_types=['.py', '.txt'], type="file",
103
  elem_classes="short-height")
104
  instructor_prompt = gr.Textbox(visible=True)
105
+ file_input.upload(get_instructor_prompt, file_input, instructor_prompt)
106
 
107
  #gr.Interface(get_instructor_prompt, file_input, instructor_prompt)
108
  #test = gr.Textbox(label="testing")