brunhild217 commited on
Commit
901b0c1
·
1 Parent(s): 9c5d18e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -45,7 +45,12 @@ with gr.Blocks() as demo:
45
  # Instead of ask students to provide key, the key is now directly provided by the instructor
46
  api_input = os.environ.get("OPENAI_API_KEY")
47
  embed_key(api_input, study_tutor)
48
-
 
 
 
 
 
49
  # Chatbot interface
50
  gr.Markdown("""
51
  ## Chat with the Model
 
45
  # Instead of ask students to provide key, the key is now directly provided by the instructor
46
  api_input = os.environ.get("OPENAI_API_KEY")
47
  embed_key(api_input, study_tutor)
48
+
49
+ with gr.Tab("Instructor Only"):
50
+ file_input = gr.Files(label="Load a .txt or .pdf file",
51
+ file_types=['.pdf', '.txt'], type="file",
52
+ elem_classes="short-height")
53
+
54
  # Chatbot interface
55
  gr.Markdown("""
56
  ## Chat with the Model