brunhild217 commited on
Commit
c0ffdbb
·
1 Parent(s): b4ca3fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -98,8 +98,7 @@ with gr.Blocks() as demo:
98
  file_types=['.py', '.txt'], type="file",
99
  elem_classes="short-height")
100
  instructor_prompt = gr.Textbox()
101
- file_input.upload(get_instructor_prompt, inputs="file", outputs=instructor_prompt)
102
-
103
 
104
 
105
  demo.queue().launch(server_name='0.0.0.0', server_port=7860)
 
98
  file_types=['.py', '.txt'], type="file",
99
  elem_classes="short-height")
100
  instructor_prompt = gr.Textbox()
101
+ gr.Interface(get_instructor_prompt, file_input, instructor_prompt)
 
102
 
103
 
104
  demo.queue().launch(server_name='0.0.0.0', server_port=7860)