Dagfinn1962 commited on
Commit
ba9857d
1 Parent(s): 24e7a8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,4 +1,4 @@
1
- iimport time
2
  import logging
3
  import gradio as gr
4
 
@@ -120,17 +120,16 @@ with gr.Blocks(
120
  This is a lightweight demo of gpt-3.5-turbo conversation completion. It was designed as a template for in-context learning applications to be built on top of.
121
  """
122
  )
123
- with gr.Blocks():
124
  conversation = Chat()
125
  with gr.Row():
126
  with gr.Column():
127
  # to do: change to openaikey input for public release
128
  openai_key = gr.Textbox(
129
  label="OpenAI Key",
130
- value="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",
131
  type="password",
132
- placeholder="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",
133
- info="Free use ! ",
134
  )
135
  chatbot = gr.Chatbot().style(height=400)
136
  with gr.Row():
 
1
+ import time
2
  import logging
3
  import gradio as gr
4
 
 
120
  This is a lightweight demo of gpt-3.5-turbo conversation completion. It was designed as a template for in-context learning applications to be built on top of.
121
  """
122
  )
 
123
  conversation = Chat()
124
  with gr.Row():
125
  with gr.Column():
126
  # to do: change to openaikey input for public release
127
  openai_key = gr.Textbox(
128
  label="OpenAI Key",
129
+ value="",
130
  type="password",
131
+ placeholder="sk..",
132
+ info="You have to provide your own OpenAI API key.",
133
  )
134
  chatbot = gr.Chatbot().style(height=400)
135
  with gr.Row():