orrinin commited on
Commit
74693c0
ยท
verified ยท
1 Parent(s): 622c7ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -24,7 +24,7 @@ system_prompt = '''
24
  }
25
  }
26
  #Please note that the [string] you generate now must be in easy-and-understandable Chinese.
27
- #Be concise.
28
  '''
29
 
30
  DESCRIPTION = '''
@@ -164,7 +164,11 @@ async def main(link):
164
 
165
  # Read the generated audio file
166
  return output_filename
167
-
 
 
 
 
168
  with gr.Blocks(theme='soft', css=css, title="Musen") as iface:
169
  with gr.Accordion(""):
170
  gr.Markdown(DESCRIPTION)
@@ -175,7 +179,8 @@ with gr.Blocks(theme='soft', css=css, title="Musen") as iface:
175
  with gr.Row():
176
  submit_btn = gr.Button("๐Ÿš€ ๅ‘้€") # Create a submit button
177
  clear_btn = gr.ClearButton(output_box, value="๐Ÿ—‘๏ธ ๆธ…้™ค") # Create a clear button
178
-
 
179
  # Set up the event listeners
180
  submit_btn.click(main, inputs=input_box, outputs=output_box)
181
 
 
24
  }
25
  }
26
  #Please note that the [string] you generate now must be in easy-and-understandable Chinese.
27
+ #Be concise. No less than three rounds of conversation.
28
  '''
29
 
30
  DESCRIPTION = '''
 
164
 
165
  # Read the generated audio file
166
  return output_filename
167
+ Examples = [
168
+ ["https://www.yahoo.com/news/shes-worlds-most-expensive-cow-040156493.html"],
169
+ ["https://www.yahoo.com/news/fact-check-rumor-says-ukraines-001900679.html"],
170
+ ["https://www.yahoo.com/tech/super-hornet-armed-sm-6-180853983.html"],
171
+ ]
172
  with gr.Blocks(theme='soft', css=css, title="Musen") as iface:
173
  with gr.Accordion(""):
174
  gr.Markdown(DESCRIPTION)
 
179
  with gr.Row():
180
  submit_btn = gr.Button("๐Ÿš€ ๅ‘้€") # Create a submit button
181
  clear_btn = gr.ClearButton(output_box, value="๐Ÿ—‘๏ธ ๆธ…้™ค") # Create a clear button
182
+ gr.Examples(examples=Examples, inputs=input_box, outputs=output_box, fn=main, cache_examples="lazy")
183
+
184
  # Set up the event listeners
185
  submit_btn.click(main, inputs=input_box, outputs=output_box)
186