ysharma HF staff commited on
Commit
b02ce42
1 Parent(s): 389e675

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
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
- #with gr.Tab('CodeGemma Chatbot'):
46
- gr.ChatInterface(codegemma,
47
- examples=[["Write a Python function to calculate the nth fibonacci number."]],
48
- fill_height=True,
49
- placeholder=placeholder,
50
- additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
51
- additional_inputs=[
52
- gr.Slider(0, 1, 0.95, label="Temperature", render=False),
53
- gr.Slider(128, 4096, 512, label="Max new tokens", render=False ),
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__":