Antonio49 commited on
Commit
b7dbfa2
verified
1 Parent(s): 3ffccd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -118,14 +118,14 @@ theme = gr.themes.Soft(primary_hue="zinc", secondary_hue="green", neutral_hue="g
118
  with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;}""",
119
  theme=theme) as demo:
120
  gr.HTML(title)
121
- gr.HTML("""<h3 align="center">馃敟This Huggingface Gradio Demo provides you access to GPT4 API with System Messages. Please note that you would be needing an OPENAI API key for GPT4 access馃檶</h1>""")
122
  gr.HTML(theme_addon_msg)
123
- 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>''')
124
 
125
  with gr.Column(elem_id = "col_container"):
126
  #Users need to provide their own GPT4 API key, it is no longer provided by Huggingface
127
  with gr.Row():
128
- openai_gpt4_key = gr.Textbox(label="OpenAI GPT4 Key", value="", type="password", placeholder="sk..", info = "You have to provide your own GPT4 keys for this app to function properly",)
129
  with gr.Accordion(label="System message:", open=False):
130
  system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="",placeholder="Type here..")
131
  accordion_msg = gr.HTML(value="馃毀 To set System message you will have to refresh the app", visible=False)
 
118
  with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;}""",
119
  theme=theme) as demo:
120
  gr.HTML(title)
121
+ gr.HTML("""<h3 align="center">馃敟Esta demostraci贸n de Huggingface Gradio le brinda acceso a la API GPT4 con mensajes del sistema. Tenga en cuenta que necesitar铆a una clave API de OPENAI para acceder a GPT4 馃檶</h1>""")
122
  gr.HTML(theme_addon_msg)
123
+ gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPT4?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplique el espacio y ejec煤telo de forma segura con su clave API de OpenAI</center>''')
124
 
125
  with gr.Column(elem_id = "col_container"):
126
  #Users need to provide their own GPT4 API key, it is no longer provided by Huggingface
127
  with gr.Row():
128
+ openai_gpt4_key = gr.Textbox(label="OpenAI GPT4 Key", value="", type="password", placeholder="sk..", info = "Tienes que proporcionar tus propias claves GPT4 para que esta aplicaci贸n funcione correctamente",)
129
  with gr.Accordion(label="System message:", open=False):
130
  system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="",placeholder="Type here..")
131
  accordion_msg = gr.HTML(value="馃毀 To set System message you will have to refresh the app", visible=False)