hysts HF staff commited on
Commit
cf4d754
1 Parent(s): a8fb9c8

gradio==5.9.1

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +4 -5
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 😻
4
  colorFrom: indigo
5
  colorTo: pink
6
  sdk: gradio
7
- sdk_version: 4.39.0
8
  app_file: app.py
9
  pinned: false
10
  short_description: Chatbot
 
4
  colorFrom: indigo
5
  colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 5.9.1
8
  app_file: app.py
9
  pinned: false
10
  short_description: Chatbot
app.py CHANGED
@@ -78,7 +78,7 @@ def generate(
78
  yield "".join(outputs)
79
 
80
 
81
- chat_interface = gr.ChatInterface(
82
  fn=generate,
83
  additional_inputs=[
84
  gr.Slider(
@@ -126,12 +126,11 @@ chat_interface = gr.ChatInterface(
126
  ["Write a 100-word article on 'Benefits of Open-Source in AI research'"],
127
  ],
128
  cache_examples=False,
 
 
 
129
  )
130
 
131
- with gr.Blocks(css="style.css", fill_height=True) as demo:
132
- gr.Markdown(DESCRIPTION)
133
- gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
134
- chat_interface.render()
135
 
136
  if __name__ == "__main__":
137
  demo.queue(max_size=20).launch()
 
78
  yield "".join(outputs)
79
 
80
 
81
+ demo = gr.ChatInterface(
82
  fn=generate,
83
  additional_inputs=[
84
  gr.Slider(
 
126
  ["Write a 100-word article on 'Benefits of Open-Source in AI research'"],
127
  ],
128
  cache_examples=False,
129
+ description=DESCRIPTION,
130
+ css_paths="style.css",
131
+ fill_height=True,
132
  )
133
 
 
 
 
 
134
 
135
  if __name__ == "__main__":
136
  demo.queue(max_size=20).launch()