Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def generate(
|
|
84 |
|
85 |
additional_inputs=[
|
86 |
gr.Slider(
|
87 |
-
label="Temperature",
|
88 |
value=0.9,
|
89 |
minimum=0.0,
|
90 |
maximum=1.0,
|
@@ -99,7 +99,7 @@ additional_inputs=[
|
|
99 |
maximum=1048,
|
100 |
step=64,
|
101 |
interactive=True,
|
102 |
-
info="The maximum
|
103 |
),
|
104 |
gr.Slider(
|
105 |
label="Top-p (nucleus sampling)",
|
@@ -135,18 +135,18 @@ with gr.Blocks(css=css) as demo:
|
|
135 |
# gr.HTML("<h1><center>Mistral 7B Instruct<h1><center>")
|
136 |
# gr.HTML("<h3><center>In this demo, you can chat with <a href='https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1'>Mistral-7B-Instruct</a> model. π¬<h3><center>")
|
137 |
# gr.HTML("<h3><center>Learn more about the model <a href='https://huggingface.co/docs/transformers/main/model_doc/mistral'>here</a>. π<h3><center>")
|
138 |
-
gr.HTML("<h1><center>
|
139 |
-
gr.HTML("<h3><center>
|
140 |
with gr.Row():
|
141 |
with gr.Column():
|
142 |
-
gr.HTML("<h3>Look into the
|
143 |
gr.HTML(NOMIC)
|
144 |
with gr.Column():
|
145 |
-
gr.HTML("<h3>
|
146 |
gr.ChatInterface(
|
147 |
generate,
|
148 |
additional_inputs=additional_inputs,
|
149 |
-
examples=[["What is
|
150 |
)
|
151 |
RAG_Checkbox = gr.Checkbox(label="Use Retrival Augmented Generation" , value=True , interactive=False)
|
152 |
|
|
|
84 |
|
85 |
additional_inputs=[
|
86 |
gr.Slider(
|
87 |
+
label="Temperature (Creativity)",
|
88 |
value=0.9,
|
89 |
minimum=0.0,
|
90 |
maximum=1.0,
|
|
|
99 |
maximum=1048,
|
100 |
step=64,
|
101 |
interactive=True,
|
102 |
+
info="The maximum number of new tokens",
|
103 |
),
|
104 |
gr.Slider(
|
105 |
label="Top-p (nucleus sampling)",
|
|
|
135 |
# gr.HTML("<h1><center>Mistral 7B Instruct<h1><center>")
|
136 |
# gr.HTML("<h3><center>In this demo, you can chat with <a href='https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1'>Mistral-7B-Instruct</a> model. π¬<h3><center>")
|
137 |
# gr.HTML("<h3><center>Learn more about the model <a href='https://huggingface.co/docs/transformers/main/model_doc/mistral'>here</a>. π<h3><center>")
|
138 |
+
gr.HTML("<h1><center>TaoGPTv0<center></h1>")
|
139 |
+
gr.HTML("<h3><center>TaoGPTv0 is a fine-tuned Mistal-7B model with a retrieval augmented generation pipeline on Tao Science by Dr. Rulin Xu and Dr. Zhi Gang Sha. Check out- <a href='https://github.com/agencyxr/taogpt7B'>Github Repo</a> For More Information. π¬<h3><center>")
|
140 |
with gr.Row():
|
141 |
with gr.Column():
|
142 |
+
gr.HTML("<h3>Look into the dataset we used to finetune our model</h3>")
|
143 |
gr.HTML(NOMIC)
|
144 |
with gr.Column():
|
145 |
+
gr.HTML("<h3>Connect with TaoGPTv0</h3>")
|
146 |
gr.ChatInterface(
|
147 |
generate,
|
148 |
additional_inputs=additional_inputs,
|
149 |
+
examples=[["What is Tao Science?"], ["Give me a Summary about Tao Science."]],
|
150 |
)
|
151 |
RAG_Checkbox = gr.Checkbox(label="Use Retrival Augmented Generation" , value=True , interactive=False)
|
152 |
|