Update app.py
Browse files
app.py
CHANGED
@@ -241,8 +241,6 @@ def vote(data: gr.LikeData):
|
|
241 |
else: print("You downvoted this response: " + data.value)
|
242 |
|
243 |
additional_inputs = [
|
244 |
-
gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1),
|
245 |
-
gr.Radio(["Off", "Chroma"], label="Retrieval Augmented Generation", value = "Off"),
|
246 |
gr.Slider(label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Höhere Werte erzeugen diversere Antworten"),
|
247 |
gr.Slider(label="Max new tokens", value=256, minimum=0, maximum=4096, step=64, interactive=True, info="Maximale Anzahl neuer Tokens"),
|
248 |
gr.Slider(label="Top-p (nucleus sampling)", value=0.6, minimum=0.0, maximum=1, step=0.05, interactive=True, info="Höhere Werte verwenden auch Tokens mit niedrigerer Wahrscheinlichkeit."),
|
@@ -261,6 +259,9 @@ chat_interface_stream = gr.ChatInterface(
|
|
261 |
chatbot=chatbot_stream,
|
262 |
css=css,
|
263 |
examples=examples,
|
|
|
|
|
|
|
264 |
)
|
265 |
|
266 |
with gr.Blocks() as demo:
|
|
|
241 |
else: print("You downvoted this response: " + data.value)
|
242 |
|
243 |
additional_inputs = [
|
|
|
|
|
244 |
gr.Slider(label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Höhere Werte erzeugen diversere Antworten"),
|
245 |
gr.Slider(label="Max new tokens", value=256, minimum=0, maximum=4096, step=64, interactive=True, info="Maximale Anzahl neuer Tokens"),
|
246 |
gr.Slider(label="Top-p (nucleus sampling)", value=0.6, minimum=0.0, maximum=1, step=0.05, interactive=True, info="Höhere Werte verwenden auch Tokens mit niedrigerer Wahrscheinlichkeit."),
|
|
|
259 |
chatbot=chatbot_stream,
|
260 |
css=css,
|
261 |
examples=examples,
|
262 |
+
inputs = [gr.Textbox(label = "OpenAI API Key", value = "sk-", lines = 1),
|
263 |
+
#gr.Radio(["Off", "Chroma", "MongoDB"], label="Retrieval Augmented Generation", value = "Off"),
|
264 |
+
gr.Radio(["Off", "Chroma"], label="Retrieval Augmented Generation", value = "Off"),
|
265 |
)
|
266 |
|
267 |
with gr.Blocks() as demo:
|