Spaces:
Runtime error
Runtime error
Add application file
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
import json
|
@@ -104,10 +105,11 @@ def set_visible_true():
|
|
104 |
return gr.update(visible=True)
|
105 |
|
106 |
# Title
|
107 |
-
title = """
|
108 |
-
|
109 |
-
|
110 |
-
|
|
|
111 |
1. Input your Open API key <br />
|
112 |
2. System message (2 options): <br />
|
113 |
2.1 Directly input into system message box. <br />
|
@@ -124,7 +126,7 @@ system_msg_info = """System message helps set the behavior of the AI Assistant.
|
|
124 |
|
125 |
with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;}""") as demo:
|
126 |
gr.HTML(title)
|
127 |
-
|
128 |
with gr.Column(elem_id = "col_container"):
|
129 |
#Users need to provide their own GPT4 API key, it is no longer provided by Huggingface
|
130 |
with gr.Row():
|
|
|
1 |
|
2 |
+
|
3 |
import gradio as gr
|
4 |
import os
|
5 |
import json
|
|
|
105 |
return gr.update(visible=True)
|
106 |
|
107 |
# Title
|
108 |
+
title = """<h1 align="center">ChatGPT4 Demo</h1>"""
|
109 |
+
|
110 |
+
# Instruction
|
111 |
+
instruction = """
|
112 |
+
<p style="text-align: left;">Instruction: <br />
|
113 |
1. Input your Open API key <br />
|
114 |
2. System message (2 options): <br />
|
115 |
2.1 Directly input into system message box. <br />
|
|
|
126 |
|
127 |
with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;}""") as demo:
|
128 |
gr.HTML(title)
|
129 |
+
gr.HTML(instruction)
|
130 |
with gr.Column(elem_id = "col_container"):
|
131 |
#Users need to provide their own GPT4 API key, it is no longer provided by Huggingface
|
132 |
with gr.Row():
|