Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def format_prompt(new_message, history):
|
|
16 |
prompt += f"[INST] {new_message} [/INST]"
|
17 |
return prompt
|
18 |
|
19 |
-
def generate(prompt, history, temperature=0.25, max_new_tokens=
|
20 |
# Konfiguration der Parameter
|
21 |
temperature = float(temperature)
|
22 |
if temperature < 1e-2:
|
@@ -46,6 +46,6 @@ samir_chatbot = gr.Chatbot(bubble_full_width=True, show_label=False, show_copy_b
|
|
46 |
|
47 |
# Minimalistisches Theme und Konfiguration der Gradio-Demo
|
48 |
theme = 'syddharth/gray-minimal'
|
49 |
-
demo = gr.ChatInterface(fn=generate, chatbot=samir_chatbot, title="
|
50 |
|
51 |
demo.queue().launch(show_api=False)
|
|
|
16 |
prompt += f"[INST] {new_message} [/INST]"
|
17 |
return prompt
|
18 |
|
19 |
+
def generate(prompt, history, temperature=0.25, max_new_tokens=1024, top_p=0.95, repetition_penalty=1.0):
|
20 |
# Konfiguration der Parameter
|
21 |
temperature = float(temperature)
|
22 |
if temperature < 1e-2:
|
|
|
46 |
|
47 |
# Minimalistisches Theme und Konfiguration der Gradio-Demo
|
48 |
theme = 'syddharth/gray-minimal'
|
49 |
+
demo = gr.ChatInterface(fn=generate, chatbot=samir_chatbot, title="WP-Plugin Generator", theme=theme)
|
50 |
|
51 |
demo.queue().launch(show_api=False)
|