Spaces:
Build error
Build error
Commit
·
e6fae38
1
Parent(s):
f934fb5
Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,8 @@ with gr.Blocks() as demo:
|
|
45 |
# API Authentication
|
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 |
# Chatbot interface
|
50 |
gr.Markdown("""
|
@@ -68,7 +70,7 @@ with gr.Blocks() as demo:
|
|
68 |
test_btn = gr.Button("View your chat history")
|
69 |
chat_history = gr.JSON(label = "conversation history")
|
70 |
test_btn.click(get_conversation_history, inputs=[study_tutor], outputs=[chat_history, study_tutor])
|
71 |
-
|
72 |
with gr.Blocks():
|
73 |
gr.Markdown("""
|
74 |
## Export Your Chat History
|
|
|
45 |
# API Authentication
|
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 |
+
print(os.environ.get("SECRET_PROMPT"))
|
50 |
|
51 |
# Chatbot interface
|
52 |
gr.Markdown("""
|
|
|
70 |
test_btn = gr.Button("View your chat history")
|
71 |
chat_history = gr.JSON(label = "conversation history")
|
72 |
test_btn.click(get_conversation_history, inputs=[study_tutor], outputs=[chat_history, study_tutor])
|
73 |
+
|
74 |
with gr.Blocks():
|
75 |
gr.Markdown("""
|
76 |
## Export Your Chat History
|