brunhild217 commited on
Commit
901a36f
·
1 Parent(s): dc2270c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -46,8 +46,15 @@ with gr.Blocks() as demo:
46
  # Instead of ask students to provide key, the key is now directly provided by the instructor
47
  embed_key(os.environ.get("OPENAI_API_KEY"), study_tutor)
48
 
49
- gr.Textbox(str(os.environ.get("SECRET_PROMPT")))
50
-
 
 
 
 
 
 
 
51
  # Chatbot interface
52
  gr.Markdown("""
53
  ## Chat with the Model
 
46
  # Instead of ask students to provide key, the key is now directly provided by the instructor
47
  embed_key(os.environ.get("OPENAI_API_KEY"), study_tutor)
48
 
49
+ instructor_input = gr.TextArea(label='Enter vector store URL, if given by instructor (WIP)', value=os.environ.get("SECRET_PROMPT"),
50
+ lines=2, interactive=False, elem_classes="translucent")
51
+
52
+ with gr.Row():
53
+ vs_build_button = gr.Button(value = 'Start Studying with Your Tutor!', scale=1)
54
+ vs_build_button.click(disable_until_done, vs_build_button, vs_build_button) \
55
+ .then(create_reference_store, [study_tutor, vs_build_button, instructor_input],
56
+ [study_tutor, vs_build_button])
57
+
58
  # Chatbot interface
59
  gr.Markdown("""
60
  ## Chat with the Model