ysharma HF staff commited on
Commit
de886af
1 Parent(s): df5eaa3

update duplicate space badge

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -92,7 +92,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chat_counter, chatbot=[]
92
  def reset_textbox():
93
  return gr.update(value='')
94
 
95
- title = """<h1 align="center">🔥GPT4 with ChatCompletions API +🚀Gradio Streaming🚀</h1>"""
96
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
97
  ```
98
  User: <utterance>
@@ -107,7 +107,7 @@ In this app, you can explore the outputs of a gpt-4 LLM.
107
  with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin-right: auto;}
108
  #chatbot {height: 520px; overflow: auto;}""") as demo:
109
  gr.HTML(title)
110
- gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPTwithAPI?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
111
  with gr.Column(elem_id = "col_container"):
112
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
113
  chatbot = gr.Chatbot(elem_id='chatbot') #c
 
92
  def reset_textbox():
93
  return gr.update(value='')
94
 
95
+ title = """<h1 align="center">🔥GPT4 with ChatCompletions API +🚀Gradio-Streaming</h1>"""
96
  description = """Language models can be conditioned to act like dialogue agents through a conversational prompt that typically takes the form:
97
  ```
98
  User: <utterance>
 
107
  with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin-right: auto;}
108
  #chatbot {height: 520px; overflow: auto;}""") as demo:
109
  gr.HTML(title)
110
+ gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPT4?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
111
  with gr.Column(elem_id = "col_container"):
112
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
113
  chatbot = gr.Chatbot(elem_id='chatbot') #c