Niansuh commited on
Commit
16ceb53
1 Parent(s): b0162dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -92,7 +92,7 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
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>
@@ -101,7 +101,7 @@ User: <utterance>
101
  Assistant: <utterance>
102
  ...
103
  ```
104
- In this app, you can explore the outputs of a gpt-4o LLM.
105
  """
106
 
107
  theme = gr.themes.Default(primary_hue="green")
@@ -111,7 +111,8 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
111
  theme=theme) as demo:
112
  gr.HTML(title)
113
  gr.HTML("""<h3 align="center">🔥This Huggingface Gradio Demo provides you full access to GPT4 API (4096 token limit). 🎉🥳🎉You don't need any OPENAI API key🙌</h1>""")
114
- gr.HTML('''<center><a href="https://huggingface.co/spaces/Niansuh/ChatGPT?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''') with gr.Column(elem_id = "col_container"):
 
115
  #GPT4 API Key is provided by Huggingface
116
  #openai_api_key = gr.Textbox(type='password', label="Enter only your GPT4 OpenAI API key here")
117
  chatbot = gr.Chatbot(elem_id='chatbot') #c
 
92
  def reset_textbox():
93
  return gr.update(value='')
94
 
95
+ title = """<h1 align="center">🔥GPT4o 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>
 
101
  Assistant: <utterance>
102
  ...
103
  ```
104
+ In this app, you can explore the outputs of a gpt-4 LLM.
105
  """
106
 
107
  theme = gr.themes.Default(primary_hue="green")
 
111
  theme=theme) as demo:
112
  gr.HTML(title)
113
  gr.HTML("""<h3 align="center">🔥This Huggingface Gradio Demo provides you full access to GPT4 API (4096 token limit). 🎉🥳🎉You don't need any OPENAI API key🙌</h1>""")
114
+ gr.HTML('''<center><a href="https://huggingface.co/spaces/niansuh/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>''')
115
+ with gr.Column(elem_id = "col_container"):
116
  #GPT4 API Key is provided by Huggingface
117
  #openai_api_key = gr.Textbox(type='password', label="Enter only your GPT4 OpenAI API key here")
118
  chatbot = gr.Chatbot(elem_id='chatbot') #c