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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -35,8 +35,8 @@ def codegemma(message: str, history: list, temperature: float, max_new_tokens: i
35
 
36
 
37
  placeholder = """
38
- <img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/7dd7659cff2eab51f0f5336f378edfca01dd16fa/gemma_lockup_vertical_full-color_rgb.png" style="width:40%">
39
- <b>CodeGemma-7B-IT</b>
40
  """
41
 
42
  # Gradio block
@@ -45,6 +45,7 @@ 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=[
 
35
 
36
 
37
  placeholder = """
38
+ <img src="https://ysharma-dummy-chat-app.hf.space/file=/tmp/gradio/7dd7659cff2eab51f0f5336f378edfca01dd16fa/gemma_lockup_vertical_full-color_rgb.png" style="width:30%">
39
+ <br><b>CodeGemma-7B-IT Chatbot</b>
40
  """
41
 
42
  # Gradio block
 
45
  gr.Markdown("# CODEGEMMA-7b-IT")
46
  gr.ChatInterface(codegemma,
47
  examples=[["Write a Python function to calculate the nth fibonacci number."]],
48
+ cache_examples=False,
49
  fill_height=True,
50
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
51
  additional_inputs=[