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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -101,9 +101,11 @@ with gr.Blocks() as demo:
101
  file_input = gr.File(label="Load a .txt or .py file",
102
  file_types=['.py', '.txt'], type="file",
103
  elem_classes="short-height")
104
- instructor_prompt = gr.Textbox(visible=False)
105
- gr.Interface(get_instructor_prompt, file_input, instructor_prompt)
106
- test = gr.Textbox(label="testing")
107
- instructor_prompt.change(embed_prompt, instructor_prompt, test)
 
 
108
 
109
  demo.queue().launch(server_name='0.0.0.0', server_port=7860)
 
101
  file_input = gr.File(label="Load a .txt or .py file",
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")
109
+ #instructor_prompt.change(embed_prompt, instructor_prompt, test)
110
 
111
  demo.queue().launch(server_name='0.0.0.0', server_port=7860)