shogi880 commited on
Commit
3f55b8d
·
1 Parent(s): a29eec8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
 
3
  dictionary = {
4
- 'a playful man': "- A young man in his mid-20s to early 30s, Has a playful and energetic demeanor, with a big smile always on his face, Has a lean and athletic build, Has messy, yet stylish hair that is always styled in a way that makes it look like he just got out of bed, Has a playful twinkle in his eye, and a hint of mischief in his expression, Wears casual, comfortable clothing that is both stylish and practical,Often seen with a bag or backpack, as if he's always ready for an adventure"
5
  }
6
 
7
  def chatgpt(query):
@@ -14,7 +14,7 @@ def chatgpt(query):
14
  with gr.Blocks() as demo:
15
  gr.Markdown("Start typing below and then click **Run** to see the output.")
16
  with gr.Row():
17
- inp = gr.Textbox(placeholder="Describe your character...")
18
  out = gr.Textbox()
19
  btn = gr.Button("Ask ChatGPT to generate a detailed description.")
20
  btn.click(fn=chatgpt, inputs=inp, outputs=out)
 
1
  import gradio as gr
2
 
3
  dictionary = {
4
+ 'a playful man': "A young man in his mid-20s to early 30s, Has a playful and energetic demeanor, with a big smile always on his face, Has a lean and athletic build, Has messy, yet stylish hair that is always styled in a way that makes it look like he just got out of bed, Has a playful twinkle in his eye, and a hint of mischief in his expression, Wears casual, comfortable clothing that is both stylish and practical,Often seen with a bag or backpack, as if he's always ready for an adventure"
5
  }
6
 
7
  def chatgpt(query):
 
14
  with gr.Blocks() as demo:
15
  gr.Markdown("Start typing below and then click **Run** to see the output.")
16
  with gr.Row():
17
+ inp = gr.Dropdown(["a playful man", "a trusing woman", "a boy who is bullied"])
18
  out = gr.Textbox()
19
  btn = gr.Button("Ask ChatGPT to generate a detailed description.")
20
  btn.click(fn=chatgpt, inputs=inp, outputs=out)