Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,19 +40,18 @@ placeholder = """
|
|
40 |
"""
|
41 |
|
42 |
# Gradio block
|
|
|
43 |
with gr.Blocks(fill_height=True) as demo:
|
44 |
gr.Markdown("# CODEGEMMA-7b-IT")
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
],
|
55 |
-
)
|
56 |
|
57 |
|
58 |
if __name__ == "__main__":
|
|
|
40 |
"""
|
41 |
|
42 |
# Gradio block
|
43 |
+
chatbot=gr.Chatbot(placeholder=placeholder,)
|
44 |
with gr.Blocks(fill_height=True) as demo:
|
45 |
gr.Markdown("# CODEGEMMA-7b-IT")
|
46 |
+
gr.ChatInterface(codegemma,
|
47 |
+
examples=[["Write a Python function to calculate the nth fibonacci number."]],
|
48 |
+
fill_height=True,
|
49 |
+
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
|
50 |
+
additional_inputs=[
|
51 |
+
gr.Slider(0, 1, 0.95, label="Temperature", render=False),
|
52 |
+
gr.Slider(128, 4096, 512, label="Max new tokens", render=False ),
|
53 |
+
],
|
54 |
+
)
|
|
|
|
|
55 |
|
56 |
|
57 |
if __name__ == "__main__":
|